Yes, Jerusalem is comforted by contrasting their situation with Edom. It is stated that the punishment of their iniquity
will come to an end. This expression may be a prediction of hope that it will end in the future. It may also be completed, although the aftereffects are still evident. The worst has been experienced and the exile will be no longer. Whatever the case may be, there is hope and comfort because the end is in sight.1
22 The punishment of your iniquity, O daughter of Zion, is accomplished; he will keep you in exile no longer; but your iniquity, O daughter of Edom, he will punish; he will uncover your sins.