Caffeine can feel helpful for some adults with ADHD, especially for short-term focus and alertness, but it is not a treatment for ADHD.
Because ADHD brains regulate dopamine and norepinephrine differently, caffeine (a mild stimulant) can feel calming or focusing for some people, while making others anxious, tired, or wired-but-unproductive.