Is it a good idea to pay foreign governments to release American prisoners?

Iran says it received a bail payment of half a million dollars before it released the American hiker who was freed Tuesday. Today’s Question: Is it a good idea to pay foreign governments to release American prisoners?