Yup!
Luckily, opioids can be swapped for other medications that are less effective, like high dose NSAIDs. There's also local anesthetics for some stuff.