You'll hear different opinions. Some run them 24/7, some occasionally, and others never. Make sure you use the pump rating that the manufacturer recommends and get the largest wattage you can. Also, the slower the water moves past the UV light the better.
They can help control water-born algae as well as parasites. There are hang-on and In-line models. The in-line models probably work the best but I have a hang-on ('cus I didn't want to plumb it in :smirk: ). I only use mine if a disease warrants it.