Follow company policies and state laws. While medical marijuana may be legal, if it impairs an employee's ability to perform their job safely and effectively, action must be taken just as with any other impairing substance.