Have you ever been told to eat when you had a headache? Probably the birth of eating disorders.
Not that I can recall, but typically the first thing I do is have a glass of water.
I used to get severe headaches when I had gone too long between meals, so yes, eating something made it go away.
Feed a cold, starve a fever.
If my headache is do to not eating, then yes I have to eat.
If my headache is do to stress or being tired, then I have to lay down.