10 weeks

I'm 10 weeks pregnant now. I dont want my baby to be at risk to be taken from me. I have smoked weed to help with the sickness to help with appetite. At my 8 week scan baby had 170 heartbeat and is measuring fine. If I have smoked until I'm 10 weeks will I and baby test positive? Do I need to worry?