No it's not.
First consider you do not need to purchase an OS, nor keyboard, nor mouse, nor monitor, nor printer, nor speakers, nor floppy drive, nor NIC, etc. if you are replacing just the computer.
But even if you are (for some weird reason) replacing all that stuff as well, you can...