When is it okay to take drugs?

When the drugs in question are either necessary to life or for legal purposes.