This in most case is a normal occurence, direct staring at sunlight should not be done any which ways.
Though this maybe abnormal if associated with flashes/floaters or a red eye. If thats the case you need an eye examination at the earliest.
Suggestions offered by doctors on Lybrate are of advisory nature i.e., for educational and informational purposes only. Content posted on, created for, or compiled by Lybrate is not intended or designed to replace your doctor's independent judgment about any symptom, condition, or the appropriateness or risks of a procedure or treatment for a given person.