A non-compete clause in a contract may be enforceable by a court, but it will depend on various factors