Depends on the worm. There are many varieties and somewhat hard to tell some of them apart. There are a very few types that are predatory on coral, but never saw a worm that could capture and kill a healthy fish. I hate them and remove the monster ones, but the rest I leave alone unless I find it near a coral.
Sent from my iPhone using Aquarium Advice