Technically you really shouldn't. The goal really should be to get clean first, and then you can work out how you want to manage your life. Honestly, it's the same for alcohol. Of the two, I'd be inclined to say that weed is probably the safer option.