That might help to some extent, but people still overdose with prescription opioids, which are much more uniform in strength.
An effective dose, especially for someone with high tolerance, often just isn't that far from a lethal one.
Supervised injection sites, with medical professionals equipped with naloxone would help, at least for people willing to use them.