Apart from programming, can the pi be used as a desktop computer on a home TV or a monitor with HDMI?
Yes, you can.
My pi which is loaded with LibreELEC 8.2 connected to 40" Home TV for a Smart TV experience.
Occasionally I use it as a normal computer desktop using NOOBS.
S. Baskar