Depends on where you are. But if you change to male, and your intended spouse is male, then you can move to Iowa, Mass, VT, or a few other states, but under DOMA NO OTHER STATE is required, or expected to recognize it. Of course your spouse can sue for divorce in the state you got married in, and win, and THAT would be legal and binding in all states.