not if you can help it. its worth the work not to pollute your tank.
especially if it is a large riock as when breaking it up not only are you releasing stuff from damaged zoas, but you exposing internal anoxic zones in the rock causing die off and gaseous release, this is best done out of the tank and each piece rinsed to remove waste before returning to the tank.