Can I use the same Avast licence key after Windows reinstall?

I purchased Avast Internet Security (3 PCs, 1 year). I use all 3 licence keys.

Now I need to reinstall Windows on 2 computers. Will be my licence key valid if I submit it again after Windows reinstall?

The reason why I want to reinstall Windows is that I have noticed some strange computer behaviour. Avast and Malwarebytes didn’t find any problems but Kaspersky virus removal tool detected that java was infected with some trojan loader. Kaspersky removed it but I want to reinstall Windows any way.

Thanks.

Yes, you just reinstall avast and add the license again in the same way you did previously.

Yes, there is not restriction on the number of times you install avast, just the number of systems you have it installed on. That shouldn’t exceed the number that your license is for (3, in your case).