No, an astronaut has never gotten pregnant in space.
According to available information, this has not occurred primarily because of two factors:
- Lack of Sexual Activity: As the reference points out, "nobody has reportedly had sex in space yet".
- Mission Policies: Space agencies prohibit pregnant women from participating in missions.
As space travel becomes more accessible to tourists, and as humanity considers long-term space colonization, the possibility of pregnancy in space becomes increasingly relevant. However, currently, it remains a hypothetical scenario.