Did I Kill my Dog With Medicine?

My dog died today…he wasn’t well yesterday, I gave him a pain killer because he couldn’t walk…is it because of the medicine that he’s dead?…