If it's a "smart TV", yes. Most smart TV sets allows you to connect an external hard drive to it via USB.
Ordinary (non-smart) TV sets don't have the required recording software, and probably no USB port either, so you can't use them for recording to a hard drive).