Wow, what a bunch of garbage information you just got. Come on people if you do not know the answer please don't answer..........
First of yes it is possible. You need to plug the cable modem into the uplink port of your hub. Most hubs have a switch to differentiate between the type of cable used be it either straight thru or crossover. Plug te modem in and check for connectivity (ie green light) if you don't have it flip the switch and all should be well.
Most people here have made an assumption that you are trying to allow both computers to use the the cable modem. However, you never did state this, and you could just as well be trying to only access the modem from one but would still want networking access to the other. If this is the case, then a router is preferable, a switch will perform just like a hub in this regards. There are however software alternatives that would allow sharing of the modem as well. first of all get your network working and access to the cable modem from the computer it is assigned to and then we can go from there.
It's not what they tell you, its what they don't tell you!