Will I get the amount I already paid the IRS

I filed an amended tax return and had already paid the amount I originally owed to the IRS. After the amendment, it now shows that I’m due a refund. Will the IRS return the amount I previously paid.