My ob proscribed me narco for my c section recovery but the pharmacist says I should take it because I'm breastfeeding

Sam the T-zam

Are norcos safe to take for surgery pain while breastfeeding? They've been giving me Motrin and Norcos for pain in the hospital for pain management but when I went to get my prescription filled the pharmacist advised I didn't take them because I'm breastfeeding and it could hurt the baby. What should I do? Any advice?