I got pregnant right when I was graduating from nursing school. This of course was when nursing jobs were everywhere, I had a job already lined up. I passed my boards, and worked until 2 weeks before she was born. I did end up not going back to that job when my unpaid maternity leave was up, the schedule I had been promised vanished so I took a year off and then started working casually in another specialty. Several children later, I still work part time, but have build a niche for myself in my area so it has worked out well.
We had multiple pregnancies in my nursing program, 2 gave birth during the school year, they dropped out during the summer. Another 3 timed it so when we graduated, they were weeks away from giving birth. We had 2 who timed it to give birth during the summer break with plans to return, they did not. The ones who did give birth during the school year were given no special treatment, they were back in class within days, and back to 12 hour clinicals, they were not given extra time to pump during the school day or at clinicals. It was exhausting for them, I would not recommend it.