Is β endorphin related to migraine headache and its relief?

Is β endorphin related to migraine headache and its relief?