Pain killers after c section

Aruna
I was given Motrin and Oxycodone after c section. I was taking them for 10 days. My baby slept considerably at night those days. Now that I stopped it for past 2 days. My lo didn't sleep the last two nights. They say it's the pain killers I took made the baby drowsy and sleepy. Is that really true?