That's what they tell people, but I've seen otherwise personally many years ago.
In high school, I was smoking weed, 2 weeks later I got into a fight at school and they made me take a drug test. I passed. I only smoked once every few months.
Since then I've never believed the 30 day theory.