If this policy is approved, there should be a caveat ...
Any woman in front-line combat unit who gets pregnant while assigned in a combat zone, along with the father of the baby [if also military], should be cashiered with dishonorable discharges.
Combat units in a combat zone have their number of personnel assigned for a reason - they are NEEDED on a 24/7 basis. Current military policy is to remove female support personnel from a combat zone when found to be pregnant.
If a woman assigned to a combat unit in a combat zone gets pregnant, she may not be able to be easily replaced in a timely fashion. This reduces the combat strength of the unit and potentially places the other members of the unit in mortal jeopardy.
It is no different than desertion in a combat zone ...
And as you said, that also goes for the man who fathers the baby.
Of course, this won't happen. Our government won't do anything to anger the female voters, and too many men are too "whipped" to demand that women be held accountable when they, as you put it, desert in this manner, so there we are.