It also depends on your law. In California, some companies still try to put these restrictions into contracts, but that contradicts state law so it has no legal effect. The intended effect is intimidation, however, which may work with some people.