Driving under the influence of any medication which impairs your driving is permitted:

Many prescription and non-prescription drugs can impair safe driving. You should never operate a motor vehicle on any roadway with any trace of a controlled drug, substance, or intoxicating compound in your blood.
DMV Writen Test