When should i stop smoking ???

I live in Florida which is sadly a non legal state right now and I was told by many people that even if your obgyn is cool with you smoking and doesn’t test you or mention it , the hospital will test baby at birth. So my question is when should I stop smoking that way baby is thc free at birth ?