Yes, the actress who portrayed Nic Nevin, Emily VanCamp, was pregnant in real life during her time on the medical drama The Resident.
During the show's fourth season, the storyline featured Nic Nevin's pregnancy, leading to the birth of her daughter with Dr. Conrad Hawkins. This on-screen pregnancy directly overlapped with Emily VanCamp's real-life pregnancy. Although the timing was not precisely identical between the character's pregnancy arc and the actress's personal journey, the series incorporated VanCamp's condition into the narrative.
This alignment between the actress's personal life and her character's storyline is a notable instance where real-world events are integrated into a television production. VanCamp's personal development, including becoming a mother, was a significant factor in her subsequent decision to depart the series, which saw her character Nic Nevin's unexpected death.