The aperture on an SLR only closes once you press the shutter release (or press the depth of field preview button, but those are becoming rare on consumer grade hardware). If the aperture closed as soon as you changed it the camera would be unusable because the viewfinder would become very dark, and the autofocus would stop working.