Can bad eyes cause frequent headaches?

I'm getting my eyes checked for the first time tomorrow. When I got my license in 2017 I could see well with my left eye when they did the eye check for my right side of my eye and I thought they made it hard for no reason. I blamed the DOT people then they were like as long as one eye is clear but they said to get it checked. I definitely put it off but it's gotten progressively worse. My left eye isn't much better but it's more clear than the right.
Updates
+1 y
I notice myself squinting a lot trying to read, far away. I can see close up but if I cover my left eye with my hand It's a tad blurry.
Can bad eyes cause frequent headaches?
Post Opinion