Yes, if you signed a non-competition agreement, you are bound by its terms if you quit or resign. (If you are terminated, then unless you received something in addition to employment for the agreement, like a signing bonus or stock, they should not be able to enforce it against you.) For this purpose, the law does not draw a distinction between full- and part-time, or temporary or permanent; all that matters is you agreed to it.