Yes. Your private keys will not be exposed to your computer and hardware wallets are immune to computer viruses.