Sixty years ago, I'd say yes because divorcing a woman with a child would have been anathema.
Today, no, heck no. I have seen people get divorced because of children.
* Multiple cases where he didn't want children, she said she didn't, did want children, got pregnant and had it, assumed he'd be happy, he left because of her betrayal
* They had a rocky situation, she has a baby on the assumption it helps instead of counseling or solving their root conflicts. Now you add sleepless nights, more financial stress and "I have to ignore you to take care of the baby". The load of a dependent child broke the man's back and he left.
The only variation of your theme I have seen in modern life is people who wait until all the children are out of the house or last ones are teens to get divorced. The last thing they had in common walked out the door, there's no risk now the father loses access to his children, and then they divorce. In THOSE cases, the children do keep the decaying relationship together until adulthood.