Cough drops?

Is it ok to eat cough drops while breastfeeding? The package says to ask a dr. if pregnant or bf'ing