Not really, effective torture breaks the will, which can then be bent to your bidding. So it is a form of mind control, The pain is just a medium through which it is excerted, not that the person feeling the pain would agree.
It doesn't guarantee the accuracy of the information. People can say anything to avoid the pain. If you don't have time enough to check that information, it's better to dig in their thoughs