What were you going to do if she got pregnant just as you were coming to the conclusion that she was insufferable? Were you thinking of the potential risk to a child of having parents who were not yet married?
‘If’ is for children.
Your question is just as easily asked, “What were you going to do if she got pregnant just as you were coming to the conclusion that she was insufferable after you were married?”