Stopped smoking marijuana

I stopped at the end of sixteen weeks. Is that enough time for it to be out of my system if they test the baby at birth? I don’t need any lash backs, I’m just happy that I’ve made it two weeks now without smoking and I’m proud of myself, it’s been a struggle with my anxiety and depression so keep your opinions about that to yourself please, at least I am finally able to stop!!!