Sure but like people go to the doctor. During a regular checkup at a new primary they had me fill out a mental health form. Based on my results they ended up putting me down for generalized anxiety. I wasn't there for that, I was there for eczema
i got diagnosed with anxiety a little while ago, and wouldn't be slightly surprised if i actually had ADHD the whole time. i haven't had a proper panic attack in probably over three years.
Most adults with ADHD go their entire lives without a diagnosis. They develop coping mechanisms without realizing that's what they are. Anxiety and depression are both comorbid with ADHD (meaning they pair up rather frequently). If you think you might have ADHD there's a really good talk by Dr.Barkley on YouTube. He's one of the leading experts in the field and he goes over common problems and coping mechanisms. The video is called Essential Ideas for Parents. If you resonate even a little bit with it I highly recommend seeking a proper diagnosis
I can relate to anxiety as a coping mechanism for undiagnosed ADHD. I can have sudden flares of panic if my mind wanders onto random topics and suddenly I'm wondering if I've left x at home or forgotten to lock my car door (I forgot a couple times...). I also do pat downs of my pockets and rummage through my bag to ensure something is where they're meant to be.