Can I connect an external hard drive to a USB hub?

Yes. For best results, use a USB 3.2 hub, and consider a powered hub if the drive needs more power or you are connecting several devices.