Yes,…I agree with Tina, as this is a very common problem when taking narcotic pain relievers. It has been discussed here on the forum many times, and if you do a search, you can fine many post on it.
I take a combination of "Metamucil" and "Prunes" on a daily bases to keep regular. Lot's of "Fiber" will help as well, so make sure you pay attention to your diet. And of course,... Water…Water…and more Water!…drink lots of it!
One thing I do when taking a new med, is read up on it,... and look for the side effects. It's a good thing to practice as your Dr/PM continues to try different med's for pain relief.
SE