You have not mentioned about your age. And you have not mentioned the symptoms that made you think you have ADHD
will not cause ADHD.
For pain you may take painkillers like Ibuprofen
according to your age and body weight.
If you are worried about your inattentiveness at school or hyperactivity, please get the help of your parents to see a Pediatrician/ Child Psychologist
All the best.