Drug and Alcohol testing

Hi, I would like to find out if it is okay for a company to mandate the Drug testing prior to hiring. Also, is it okay for a company to mandate the Drug and Alcohol testing when an employee who drives the company vehicle gets in accident?
My company is in BC, MB, ON and QC.