I am not a lawyer. This is just what I know.
Generally speaking, non-compete are not enforceable but there are exceptions to the rule (some of which don't apply to general employees and potentially some that I may not know about).
That hasn't stopped some companies from suing if an employee leaves to a competing company and have proprietary knowledge (albeit rare).