Md. Code, Fam. Law § 8-101

Current with effective changes from the 2024 legislative session, chs. 2-121
Section 8-101 - Deeds, agreements, and settlements valid
(a) A husband and wife may make a valid and enforceable deed or agreement that relates to alimony, support, property rights, or personal rights.
(b) A husband and wife may make a valid and enforceable settlement of alimony, support, property rights, or personal rights.

Md. Code, FL § 8-101