You said earlier about not knowing about wiring junction boxes so I assumed your wiring skills are limited (Not being rude, just trying to establish you abilities).I did not know splitters like that were available!
That looks like it would be perfect other than the connector from the power supply - it needs to be a USB-C type for the rPi4 computer. If one of those is available then it looks like a viable solution. I assume I could remove the plug from the splitter and connect it directly to something like this?
If you are proposing to install your attached inlet and are comfortable (competent) to wire it then to save money I'd suggest cutting up a couple of existing IEC leads rather than buying the split lead I linked to, that way they'd be the right length too.