Absolutely, provided that you save the license file license.avastlic to a USB stick or CD, etc. before formatting.