It depends what kind of headaches
Best way to figure out is a diary of the time and duration and figure out what was happening before headache strikes.
Have you been diagnosed with migraine headaches? Migraine is so bad all you can do is lie down in the dark and not move at all. Seriously.
Is this something that happened recently or is chronic for a very long time?
These are the questions you need to figure out.
If you never get headaches before and now you have debilitating Cluster Headaches Behind the Eyes then you should really see a doctor, worst case scenario: precursor to a cerebral aneurysm