Yes or more correctly the value of variable leds is what controls the leds. If you set leds = 1 and then called updateShiftRegister(); (without the for loop) then whatever bit(s) are set in variable leds will cause the led in that position to light.
Peter