Is torture ever justified?

Is torture ever justified?