According to the provisions of China's Marriage Law, as long as the marital property agreement complies with the provisions of the law, the agreement is legally effective at the time of divorce.
Marriage Law of the People's Republic of China
Article 19 Husband and wife may agree that the property acquired during the period of marriage and the premarital property shall belong to their own, joint ownership, or part of their own, part of their joint ownership. The agreement shall be in writing. In the absence of an agreement or unclear agreement, the provisions of Articles 17 and 18 of this Law shall apply.
The agreement between husband and wife on the property acquired during the period of marriage and the property before marriage shall be binding on both parties.
If the husband and wife agree that the property acquired during the marriage relationship shall belong to each other, and the debts of the husband or wife to the outside world are known to the third party, the property owned by the husband or wife shall be used to pay off.