Some pain relievers, such as acetaminophen, are generally considered safe for breastfeeding mothers when used as directed. However, it is advisable to consult with a healthcare professional before taking any medication while breastfeeding to ensure the safety for both the mother and the baby.