Even if torture was effective, which it isn't, that's irrelevant. Just because some might work doesn't suddenly turn something that's wrong and evil into something that's okay. The ends don't justify the means even if the means can make something happen.
Even if it was 100% that doesn't somehow give it justification.