Yes, the Hanged Man refers to a state of suspension, being in limbo, redemption and the making of a sacrifice, which prison inevitably forces you to do, giving your time and freedom in recompense for 'sins'.
The Hanged Man along with the 8 Swords as mentioned, would be a more compelling indication. 8 Swords, purely based on traditional imagery. I would also say that the 4 Coins/Pents. could also show such confinement, purely based on numerical and elemental symbolism, because the 4's are about law and order, rules, neccesities and 4 Coins is a very weighty card, a ball and chain round the ankle, a heavy burden. 4 Coins also shows solid structures, buildings, prisons.