Marijuana and Parenting

Can marijuana and parenting coexist? Some users are being told they cannot, and are even losing custody of their children as a result. This could be understandable in many situations, but what about those who are legally permitted to do so? It is a sticky situation...