Maybe. But what about the rest of the opioids? Then you get some kind of cancer where you need them. There is no simple solution here.
Heroin is an easy target because it is only used recreationally (in the US, at least), so we don't have any legitimate patients who'd be impacted by eliminating it.