Losing custody ?

Can you lose custody of your child for smoking marijuana??