Mass. Gen. Laws ch. 209, § 13
The preceding sections shall not invalidate a marriage settlement or contract.