Can You Lose Custody of Your Child for Smoking Weed?

Can You Lose Custody of Your Child for Smoking Weed?