Yes, postpartum infections can affect breastfeeding. They can cause discomfort which may make breastfeeding difficult. Some infections, like mastitis, directly affect the breasts. Additionally, certain medications used for treatment may impact breastfeeding.