It might. Any effort to take care of and love yourself will improve your self-confidence, which improves relationships in your life, including your marriage. This new dynamic also may highlight other flaws in your relationship that have nothing to do with your weight.