Yes, a clean install of XP will clear all issues that aren't hardware related. But if you don't reinstall ALL drivers, you might get other issues in return, so first check if you have all of those.

If you just boot from the XP CD and say you want to an install, one of the options offered is to format the drive before proceding with the install. That's a nice way of cleaning everything.