Yogurt is absolutely fine to eat when you are pregnant, in fact it is a very good snack!
As long as its within its use-by date it should be perfectly fine! Yogurt smells bad if it has gone off. Worst case scenario if you eat yogurt that has turned bad is that you will get an upset tummy but that wont hurt the baby :-)