Office 2000 runs just fine on Windows XP. But...
If your copy of Office 2000 is an OEM version (that is, it came
preinstalled on your old computer by the computer manufacturer),
then you cannot transfer it to any other computer.
If your copy of Office 2000 is a retail boxed version, then you
should be able to install it on your new computer.
You can read the End User License Agreement that applies to your
copy of Office by starting Word and clicking on Help | Microsoft
Word Help | Contents | <expand the "Microsoft Word Help"
category> | End User License Agreement. The "Grant of License"
section tells you the number and type of computers you can
install your copy of Office on.