Some do. There are different species and some will eat corals. If they sit on the corals all the tome and the corals close, they are probably eating them. The species that eat algae may cross over corals or eat algae between the polyps, but won't actually eat the corals.