Absolutely. There’s a TV ending (I think) where Tuttle and the ninja plumbers show up and rescue Sam, and they all live happily ever after. There’s also the real ending, where that turns out to be Sam’s fantasy and he’s lost his mind. I seem to recall there’s a third version also.
I don’t think he actually gets tortured, I think the mere threat broke him - also the horror of the torturer’s identity.