Must you use a hub to connect three PCs and two PCs explain?

A hub is not required to connect three PCs and two PCs together. A switch is commonly used to allow multiple computers to communicate together.