Should you pay the mortgage and give your ex-spouse the house if he can't afford it?

Should you pay the mortgage and give your ex-spouse the house if he can’t afford it?