The divorce agreement is valid, and the content cannot violate the provisions of the law, otherwise the agreement will be invalid.
Article 37 of the Marriage Law states that after divorce, for a child supported by one party, the other party shall bear part or all of the necessary living expenses and education expenses. The amount and duration of the expenses shall be agreed upon by both parties; If the agreement fails, the people's court shall make a judgment.