To a lesser extent, that's part of what hospice / palliative care is. Not to the extent that it's purely recreational, but often involve continued use of opiods for pain management.
I suppose this varies a lot from individual to individual. I had morphine a few months ago for a shoulder reduction, and I felt horrible enough that I almost wish I'd just done it without painkillers at all.