Yes.
But if you have a computer that old, you should check what kind of ports are on your motherboard. Current internal HDDs mainly use the SATA interface. Your motherboard may need an IDE (also called PATA) interface. They make SATA to IDE adapters for $15-20.