Not quite...

The pupil, not the cornea, is the part of the eye (the "hole") that changes size to let in more or less light. The cornea is the outermost, transparent covering in the front of the eye that protects the inner parts. It also acts as a fixed-focus first-stage lens that has most of the focusing power.