IMHO I'd only bother for an always-on PC (eg. a NAS), especially if it has mechanical hard drives. The goal of it should be to prevent data loss by gracefully shutting down the PC once it detects the power has gone out for long enough.
I've got one for my NAS (a dirt cheap Cyberpower UPS) and it's done the job. I replace the battery in it every few years, as SLA batteries degrade over time. You have to be comfortable disassembling and reassembling the device to do this, kind of terrible design. But cheap!
What are you hoping to achieve with a UPS versus a surge protector or just rawdogging it? I think these days with most PCs being solid state, the risk of hardware damage is pretty minimal. If you're doing important work on the PC you should be backing it up regularly to the cloud or elsewhere anyway.