Can I still breastfeed if I don't eat healthy

Is breastfeeding still better than formula if the mom doesn't eat healthy food. I eat fast food and candy. I want to know if the milk will still be healthy.