Certainly most OTC, and perscriptions drugs apply since many of the specifically warn not to “operate heavy machinery” while using.
There is a specific difference between them, though.
An antihistimine is specifically taken to curb a dysfunction.
Alcohol and pot are specifically taken to induce a dysfunction.
I’m not sure you see the logic.