It is actually way better for 100 addicts to get their fix on pain pills than a single person in pain go without. I call this the "Torture is bad" principle. You should be able to get the good stuff forever after a single doctor's visit. If you're worried about addicts fund rehab centers and needle exchanges instead of torturing people.
Among other things if you can't use the legit market you turn to the black market anyway.
if you're worried about addiction, build a society where people get their basic needs met, including pain management.