Smoking before pregnancy

So I smoked marijuana daily until the night before I took a pregnancy test. I just took the test because it was there and I was bored lol

I wasn’t trying to get pregnant, it was the last thing on my mind because I was diagnosed with PTSD and anxiety in 2021. Smoking helped me a lot, I did that rather than Xanax I was prescribed.

It’s been about 2 1/12 weeks since I smoked and I was 4 weeks when I stopped. I went the doctors and got blood work down for my first visit and weed was still in my system.

How long does us stay in your system and can it hurt the baby? I don’t want my doctors to think I’m still smoking. I quit soon as found out at 4 weeks and I’m currently 6 weeks.