You can create any private contract you want. However, this is unnecessary. If you end up getting a divorce, the house is marital property and would be divided accordingly.
Nothing in this communication should be considered legal advice. Nor should this communication lead you to believe that an attorney-client relationship has been created. Only after thorough analysis of your case with you in my office can I provide effective legal advice on your specific issue.