Squinting is a temporary fix to improve their vision when they're having difficulty focusing on a particular distance. This is a sign that they might need glasses.
Yes you should consult Opthamalogist, also check if there are any other symptoms water eyes, redeness, itching etc
thanks
Daniel Ng