Is the antivirus software validated by installing a valid Windows license?

edited November 2018 in Install activation

Hello everybody,

I have ASUS laptop X541UV - I and install Bitdefender 2018, But some programs on my laptop were erased and I got a virus that I could not open any of my programs so I have to change Windows so I want to know if reinstalling the Windows license is valid antivirus or not?