My orgasm helped my headache?

This morning I woke up with a really bad headache. My boyfriend and I decided to have sex and after I came I felt so much better. Does this happen to you?