Assuming it's a desktop, old desktops didn't come with wireless (most new don't either). So you should buy some wireless hardware and install the XP drivers it comes with (if necessary).
If you're talking about a wired connection, that should work if there is no hardware issue and you install the right driver.

Kees