Do the prisoner's "+1 iron rod of thunderous penetration" overpower my "+2 copper pantaloons of exit-only"?
If you quickly equip "Rainbow armour of ultimate willingness +5" the prisoners sometimes loose interest. However, you will only have that equipment if you tried to kiss your step-dad earlier on in the game.
Otherwise, yes.
Or you could avoid the whole transaction by keeping a grip on your soap.
Sometimes I drop it on purpose because I am such a flirt.