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