It could certainly have profound effects on the child.
My mother took DES, Diethylstilbestrol, when she was carrying me. This was commonly used from 1940 to 1971.
It had strong estrogenic effects.
Around 1/3 of the DES "sons" turned out to be transsexual. If a transman were carrying an XX chromosome child, it could be very problematic.
Randi