Would you understand

Would you understand a wife cheating just to get pregnant? Let's say the wife wants a baby and finds out she's perfectly capable of having a child and they find out the husband has like a 1% chance or less to make a child so the wife decides to cheat, gets pregnant then cuts the relationship off completely.. then tells the husband the news baby comes out life's good. No cheating happens again. The guy who impregnated her doesn't come around. Everything worked out. Was it still wrong?