Freehubs are replaceable units, and not very expensive. You also get a nice shiny new bearing surface.
Shimano cup and cone hubs are hard to beat, even the cheaper ones are quite tough. Cartridge bearing hubs have no real advantage for the user, they are just easier to manufacture.
Usually the hub should last several rebuilds. It is the rim and spokes which need replaceing.