Can operating system be infected with malware or virus?

ry2929

Prominent
Jun 16, 2017
2
0
510
My last computer was infected. I've built a new one with pretty much everything brand new except I'll be using the same windows 8 CD and product key as my old computer. Could this infect my new computer? Sorry if this is a dumb question.