It is recommended to consult a healthcare professional before using Pepto Bismol during pregnancy or while breastfeeding to ensure it is safe and appropriate for you.