They are going to inevitably go to the hospital anyway, give birth, and accrue bills that they won't pay. That hurts the medical system more than it hurts them; and besides, once the kid is born, there will be other priorities like food, shelter, education, clothing, etc. They aren't going to care about the bill.
Children, the ones who are the future of your country, deserve to be born with a clean slate and not a hospital bill that will weigh down their family and them for years to come.
Again... saying they shouldn't get pregnant is irrelevant to the fact that they are.
Life is full of risks, some whose consequences are accidental. I'm personally not into the blame game. Should've, could've, would've... the past is unalterable. I prefer to look at present realities and relevant solutions.