Can I use a photodiode as a switch for a shift register?
Maybe on paper, but probably not in the real world.  Photodiode current is very small, so it would take a very large resistor to produce enough voltage change to affect a CMOS gate input.  You will get better performance and noise immunity with a phototransistor.