This maxim applies whether or not you find yourself in a child welfare action in juvenile court. There is a presumption that if you are using drugs and have minor children you are per se neglecting them. The best thing to do is immediately seek substance abuse treatment.
It is theoretically possible that a parent can use drugs and not neglect their child, but the burden of proof to rebut that presumption is very high. The argument that illicit drug use does not impair a parent’s parenting ability is nearly impossible to win. It may not be impossible, but I cannot think of a circumstance where a court would not find it to be so.