California law permits such a provision to limit or give up alimony upon divorce in a prenup. However, for such a provision to be effective both parties must have independent legal representation to make sure that they are willingly giving up the right and the provision is not unconscionable.