Yes, a virus or malware infection can sometimes cause booting issues from a usb drive. Make sure to scan your usb drive and computer with antivirus software to rule out any such issues.