AIN and DIN modules

hi can anyone tell me if its possiable to use only x2 74HC165 as DIN and x2 4051 IC in a AIN instead of 4 IC in both cases? And will it the PIC still work proparly?

10x

Yes, this would work.

The pic wouldn´t care, there will only be less inputs.

Greetings