Numerous members of my family have had affairs. Some divorced. Some didn't. The divorced ones remarried...happily.
I'm sorry, but that's a nonsensical, irrelevant question.