Endgame in my country is that pregnant women cannot be imprisoned for any reason, plus a couple of years post birth; we have cases where they get pregnant again and again until the prison sentence ends, so they never spend a day in prison.
It is used sometimes as a "get out of jail card" as a woman that is already in prison can get pregnant to get out.