yes they do eat algae but as I've found out the hard way they will also take the occasional nip of your corals.
Mine started to attack a cladellia which was very close to his hole in the rock - I think it must have been blocking his view because since I moved the coral he's left it alone