Pregnant patients have increased morbidity and mortality in the setting of SARS-CoV-2 infection. The exposure of pregnant patients in New York City to SARS-CoV-2 is not well understood due to early lack of access to testing and the presence of asymptomatic COVID-19 infections. Before the availability of vaccinations, preventative (shielding) measures, including but not limited to wearing a mask and quarantining at home to limit contact, were recommended for pregnant patients. Using universal testing data from 2196 patients who gave birth from April through December 2020 from one institution in New York City, and in comparison, with infection data of the general population in New York City, we estimated the exposure and real-world effectiveness of shielding in pregnant patients. Our Bayesian model shows that patients already pregnant at the onset of the pandemic had a 50% decrease in exposure compared to those who became pregnant after the onset of the pandemic and to the general population.