Yes, you can use a multi port USB hub and connect 4 Unos. It would be best if it were a powered hub
If you want to work on more than one sketch at the same time, each with its own Uno, as when testing communication between them, open a separate instance of the IDE for each Uno and each can have its own designated COM port