For me, a regular headache yes. A migraine, touch me and die LOL.
orgasms can help alleviate certain types of headaches, but make others worse. You have to get to know your limits and your body, though. Each person is different. I know some people who can have sex with a migraine and it helps, but with me, it would probably be the last thing I do before having to go to the ER for some serious sedatives to knock me out and kick the headache in the butt