Short answer .... heck yes.
Longer answer .... if the drive is so old that it requires different connectors, or has low capacity, you have to ask yourself whether it worth the trouble. But if it is a SATA drive with some capacity and you have a drive bay free, why the heck not. Your question about viruses and malware is an interesting one. Do you have reason to suspect a problem?