that's up to the individual fish. sometimes they won't bother with corals, but one day they might decide that a certain coral is food, and then forever after you'll not be able to keep that coral in the tank.
i've had hippo tangs that ate coral, and also a yellow mimic tang. they are supposed to be reef safe.