Yes. Heather Morris (Brittany S. Pierce) was pregnant during Glee Season 2 (2010–2011). She gave birth to son Elijah in 2011.
The show accommodated this with strategic framing, props, and limited dance sequences for Brittany in later Season 2 episodes. Specific pregnant episodes aren’t officially documented but align with her visible progression mid-to-late season.