Sure, but if it got into a courtroom, the judge would probably be apt to rule in favor of the party that didn't write the contract, so I would guess that rather than invalidating the entire contract, they would strike that provision. Not a lawyer though, so who knows.