I second this. I did this for my surgeries. If I took meds at all, I took them only early when likely pain was highest on in minimal, prescribed dose. Then as little as I could from that moment forward just enduring the discomfort, being careful about how I moved, etc. I got over it. Sometimes, the pain was low enough for OTC drugs should I have wanted to use them.
Good way to avoid getting addicted.