Yer but if you've got a busy network, you'll want a switch, which apparantly are traditionaly more expensive because more than one pair of computers can use the switch at once where as only one pair of computers can use the hub at once, as far as i know.
It's a little different..
A hub simply repeats to every port what any machine sends.. This results in a lot of collisions -> slower network.
A switch on the other hand sends the data only to the destination machine. If it can't figure out who gets it, then it's broadcast to everyone.
You might want to check out
This FAQ I quickly googled up