What if there is a clause in the contract says if you dont like your job for any reason you can give a month notice and leave. Can an employer stops you then?

Thanks,