Talk to your doctor
Certain medicines are safe for nursing and some are not.
Medicines that are safe to give directly to infants and medicines that were safe to take while pregnant are usually fine for nursing. The easiest way to find out is to talk to your ob/gyn or your pediatrician.
One website you can check to gather more information is: