So if you steal a car, and that car ran over a person, should you be put in prison for killing a person?

What if you smoked weed, and someone else smoked weed killed someone, should you be put in prison?