Smoking while pregnant

Ki

So my friend stopped smoking 🍃 when she found out she was pregnant but started hitting a few times (once or twice) around 3 or 4 months. She suffers from major depression and anxiety disorder and didn’t want to risk anything by taking her old meds and the doctor agreed and recommended different options to help such as vitamins. Recently she stills takes hits here and there when she gets down or has depressive episodes or to sleep. The thing is she’s now 27 weeks and just stopped. I’m worried that when she gives birth it’ll show in her babies umbilical cord when tested from what I looked up. With her stopping now, will her and the baby be clean by the time of birth?

Has anyone experienced this or know more about it?

And pls no negativity, I’m just looking for answers from people who know for sure or from their own experience or some else’s to help her stress less with her emotions especially since her baby can feel everything.