Commercially prepared mayonnaise is generally safe during pregnancy, as it typically uses pasteurized eggs. However, homemade mayonnaise or products containing raw eggs should be avoided due to the risk of salmonella.