Yes being low on Vitamin D can cause headaches.
Vitamin D deficiencies can cause chronic headaches as well as other health issues.
Some other health issues that Vitamin D deficiencies can cause besides the chronic headaches are obesity, diabetes, heart disease, and certain types of cancer.
If you're not getting enough Vitamin D then you may need to eat foods that are rich in Vitamin D and also take some Vitamin D supplements.
Vitamin D as well as other vitamins are very essential to our health so we need to make sure our bodies get enough vitamins.
If you're having constant chronic headaches then I would see a doctor and get tested for the Vitamin D deficiency.