Can drugs be in sperm?

It's an honest question lol I'm literally just wondering if sperm can have drugs in it & if you get pregnant could that affect the baby?