That'll work for the high side switching case. Now all you have to do is solve the drive level problem. If you decide to go with low side switching, all of the external inputs will have to follow the PIC ground, or you'll have to be certain that it (the PIC) will tolerate inputs held below the ground rail.