The answer to this question depends on the laws of the state the company operates in. Some state laws prohibit random testing. Also, because recreational and/or medical marijuana is legal in some states, state law may prohibit an employer from taking action against an employee because of a positive test for marijuana.