Meconium - C section question

A friend of mine is 35 weeks pregnant, as part of her routine check ups they did ultrasound. Then, the OB told her that the baby has poop in the intestines and in case of stress he can poop. For this reason, it's better for her to stop working (she works in an office) & start resting. Not only that, but she cannot give vaginal birth due to this and they should schedule a C section.

I've never heard of such thing before. Anyone have a similar experience?