Smoking weed while pregnant

So some of my friends just told me that when you have your baby they take a drug test from the umbilical cord and can tell everything you've done since you got pregnant. Occasionally I smoked weed to help with the nausea and other things and I'm really just wondering if that's something they would take my child away from me for. I don't do anything else and I'm responsible I'm not just this horrible person but at the same time I'm just under the legal age limit for recreational smoking in my state. Should I be scared or do you think I'll be good 😒