Yes, a valid non-compete agreement can legally bar you from working with a competitor as an employee or independent contractor according to the stipulated period and geographic scope of the agreement.