Select the sentence which is correctly punctuated.

A) He self-medicated his migraine headache.
B) He self medicated his migraine headache.
I answered A

Yes, A.

Some prefixes, including self- and non-, need to be hyphenated every time.