No, it is immpossible that in a million years that a stony coral are herbivores. The only hebivores in the ocean are phytoplankton, green sea turtles, dugong, and manatees are herbivores of ocean live.
Stony coral is also known as true coral which is pretty much what helps make the coral reef expand and grow, like it helps with reproducing to expand the reef.