No, I'm talking about another assumption. Read slowly.
and to answer the question, it would be ethical to confess to an extramarital affair to the spouse. After one has lost their mind, disregarded their vow, totally disrespected their spouse, yeah it's the right thing to man up and let your spouse know the low thing you've done so they can decide whether to stay with your arse or justly leave you high and dry,