Does the doctor drug test you when you're pregnant?

If I became pregnant and I went to my first doctor appointment, would she do a drug test? Can they do a test without my consent? I'm wondering because my dealer said his wife was drug tested at every doctor appointment while she was pregnant but that seems weird to me. I do NOT tell any healthcare professional that I smoke.