Exercising with a Headache

My friend is concerned about exercising this evening because she has had a headache most of the day. She took some naproxen sodium around lunchtime, but still has the headache. I gave her another bottle of water, because I don't know if she may just be dehydrated.

Should she skip out on the gym this evening?
Links to sources would be appreciated.