Usually PBP will set the pin itself. BUT if you feel safer to use INPUT PORTB.X before your Shiftin statement... give a go.

Be carefull if you tie Do and DI... should isolate the DO pin with a diode with a pull down resistor.