Yes.
If our eyes are struggling to focus or they have to work really hard to see distant objects, headaches might be a sign that our eyes need some extra help.
Typically eye strain is the main cause of headaches related to vision problems.