If someone shares drugs with a friend and they die of an overdose, does that make them a killer?

More and more prosecutors across the US are going after the friends and family of those who die from a drug overdose. Is this practice morally acceptable?