You don't need to give up sour cream during pregnancy, which will be a relief if you are a baked potato lover (they're just not the same without it!).
When it comes to safe consumption of dairy products during pregnancy, the rule of thumb is that they have to be pasteurized. When foods are pasteurized, you can rest assured that harmful bacteria have been eliminated and that you can enjoy your cheese and yogurt in peace.
Most commercial brands of sour cream (and other dairy products) that can be found in the grocery store are pasteurized, but you can make sure by reading product packaging or searching the product’s website. Try and steer clear of sour cream that’s sold at a market or independent grocer, where this information is less likely to be available.