No, the people punished are usually the prostitutes.
I remember influential church culture as more theist than feminist. Maybe I'm experiencing a Mandela Effect.
That attitude towards prostitution closely correlates with those same societies considering women to be property. Anti-prostitution laws and the emancipation of women go hand-in-hand.
Maybe edutate yourself, or speak to someone who works in the profession before shoving your biases and lies into a conversation about w very serious topic.
Only takes a quick Google search to confirm
https://en.m.wikipedia.org/wiki/Prostitution_in_ancient_Rome
The government in many avenues encourages and subsidizes fatherlessness in society in general, and the laws around prohibition were never contemplated, or even remotely idealized as an effort to combat the issue of fatherless homes.
Think about the collective experience of humanity before them. If you were a prostitute and got pregnant, it wasn’t about you, it was about that child’s experience as a fatherless individual, being raised by a person that can hardly provide for herself. As well as, what a child raised in that environment, is more inclined to do to other people.
Now that has changed if only because the link between sex and children, in most minds, has been broken. In those where it hasn’t… that’s the natural area where restrictions on birth control and abortion come from.