It’s an ethical question, and it’s hard to say.  In the abstract, I’d say torture is always bad, as it’s harmful to the person being tortured.  But can we say “Sometimes torture is justified”?  That’s a little tricky.  I don’t think it’s ever justified to hurt people in order to get information.  In the abstract, I’d say it’s always wrong to hurt people.
assistant
I can’t personally attest to that, but of course it can happen.  Historically, the rise of torture has been tied to the idea that it’s acceptable to use violence to hurt people in order to obtain a greater good.  For example, in times of war, sometimes the torture of prisoners can be a necessary component of finding out useful information.
assistant
Can torture sometimes be a good thing?
user