Did samurai use any type of torture?

Various kinds. They used to use prisoner of war and criminals to test the quality of their blades
The Samurai were warriors and had a code of conduct, called Bushido. They would not use torture against their opponents, it would not have been considered good form.