The short answer is "unknown". We do know, however, that if you can sleep through some, or most of a headache, then it will definitely pass some of the time you would otherwise spend awake, and in pain. Respondents in a Migraine headache group, felt that sleeping or taking a nap helped them reduce the effects of a migraine.