Breastfeeding

Nikki
I'm 1 week post cs and I have been pumpin and dumping because I don't want my milk to dry up. But I haven't given any to the baby yet because I'm still on Percocet for pain. A relative of mine who also breast feeds said that her doctor told her she could still breastfeed even on the pain killers. I'm scared to so I haven't. Any advice from personal experiences and how often should I pump to keep producing milk?