As others have said it really depends on the drafting and how reasonable the clause is. Eg my company has clauses in our contracts that stop our staff from trading with people they held a relationship with during their employment, but what we cannot do is restrict them from performing their profession within their industry.