Yes. Do you have the key of the XP install that was originally on the laptop? If not you'll need a key.
I would recommend against installing XP though, as the security updates have stopped, and vulnerabilities that are discovered will no longer be patched.