Yes, you can treat a yeast infection while breastfeeding. It's important to address the infection promptly to prevent it from spreading to your baby or causing further discomfort. When seeking treatment, it's essential to inform your healthcare provider that you are breastfeeding, as they will recommend suitable antifungal medications that are safe for both you and your baby. Topical antifungal creams are often prescribed, which can be applied to the affected area while ensuring proper hygiene and cleanliness.