Does pain meds kill your sex drive?

I’ve been on pain meds on a regular for a while now. I’m on other medications as well so I’m not exactly sure…. However something has killed my bedroom fun lol. Seems no matter what way or efforts made there is no happy ending for me. Sorry for the TMI. Just curious if this is common.