using 4021 parallel shift register with internal pullup resistor

No.

That's what an analog switch (relay) would do,
The MPX isn't bi-directional, and therefore doesn't do what you imagined.