Is it illegal to overdose on drugs?

its illegal to buy or posess drugs but technically no its not illegal to overdose unless you committ suicide, that's murder, but what are they gonna do about it?