Maybe, but it's not it's legality that holds me off, it's the reputability of drugs dealers. If I was to try it, it'd be a nice ultra-safe dosage, from a very reputable regulated source, and it'd be only a maybe then, a unique one off thing, with friends. Maybe smoking opium rather than shooting up heroin, which, while introducing new risk factors, it has a more casual, recreational vibe to it.
Heroin is very safe if it's genuinely just heroin, and you are injecting intravenously, a weighted dosage unique to you, by someone who has experience injecting it. Unlike with alcohol and hallucinogens, you are very unlikely to do anything dangerous while under it's influence. Addiction and consequential long term usage is definitely destructive to the greatest extreme we see with drug abuse.
It seems like I'm being condescendingly specific here but it should be noted that I'd amend those qualifications with, that you aren't sensitive to opiates and aren't using medication that could have fatal interactions with opiates. It also helps that, whenever using any drug, you're somewhere safe and feel comfortable (especially important with hallucinogens). Exhibiting excellent self control and strength of will is obviously important, because, while you won't be addicted after the first time (with heroin), you will likely want to use again, and being able to self-enforce it was a "one-off" thing is important to enjoying that.
Having someone on hand who knows what to do in the case of accidental overdose is always good too. Too many people die because their friends panic and deal with the situation badly. If we had reliable source of clean heroin for recreational use, that were properly prepared for the individual using them, to safe ranges, then that shouldn't be of issue at all. But nothing is without risk.