"Can I breastfeed even if I have to take medication?"
You should ask your doctor about whether your medication is safe for the baby and if it could affect your milk supply. You will find that most drugs are alright to use while breastfeeding. If your medication is not, ask your doctor if there is a similar medication you could take instead. There is usually something that will help your condition while allowing you to continue providing your baby with the best possible nutrition - your breastmilk.