It depends on what type..... Some are poisonous and may release toxins in the tank, some are not reef safe. And when they run out a certian type of food they eat like algae then they die.
There are ones that eat flat worms so if you have a flatworm problem these would help out. A few guys in my club are getting them to help with this issue. Read up on the type you want before you get it.