Masturbation + headaches

I have a really bad headache right now and I thought masturbating would help my head stop hurting but it didn’t really help. Does masturbating help even you with headaches?