Is it ethical for students to consume Adderall during university courses, if they don't have ADHD?
Academia is not a competition, neither is school. It's about education and knowledge. Neither comes and goes with a few pills.

Applying the anti-doping rules from sports is therefore nonsense. What applies are the common workplace anti-drug rules.