Headache is a very complicated clinical symptom and needs special treatment. For some nervous headaches, migraines, and unexplained headaches. By practicing yoga, you can promote circulation, dredge meridians, improve headache symptoms, and even finally stop having headaches. This is an improvement effect, but it cannot be said to be a treatment effect. These are two different concepts.
So practicing yoga can improve the symptoms of headache, but it can't treat it.