It can irritate the eye
, so you may notice some redness of the white of the eye.
The force from a squirt gun is not enough pressure to cause any other problems. If the water was dirty, there is risk of infection. Just keep an eye on it and if there is pain or drainage, see doc.