No, because all real employment contracts (and most other contracts, besides) will have a Severability clause that says if anything in it is found to be unlawful or unenforceable, then the contract will be modified to the minimum extent required to fix the problem (meaning any unrelated provision will remain in full force).