You will not have to worry about the computer's virus because Tails runs independently without using a hard disk. However, it may not protect your system if you install it from a computer with malicious hardware or a computer with a virus.