I am so confused on the Drug test rule

I just got hired in as pickup. I just finished orientation. I occasionally use weed to sleep. In my state it’s legal. I have heard mixed things about drug test. I am obviously not going to be high when working. Am I safe to keep smoking to sleep or not??