If the circumstances warrant it, yes. And they did. If the reports are right, the aircraft was on the ground. It was a situation any half-way competent Captain could easily handle. If they were taxying or holding, there are a number of options; sorting out last-minute issues at that stage, perhaps getting ATC to provide a stop out of the flow, is not unknown.
It was
......an emergency that poses a hazard to the aircraft or to the passengers on board.