You want to make sure the pump is running for at least 1/2 hour, preferably even an hour, during and right after after adding most chemicals.
Running the pump longer than 1/2 hour is just fine, particularly if you would normally have it running anyway. There isn't any reason to turn off the pump early, just because you added muriatic acid. Just about the only situation that requires turning off the pump is a floc treatment.