You can do that, and I know many that have. However, its usually best to do a complete clean install. I personally upgraded Windows NT to XP and also know someone who upgraded Win 98 to XP without any problems, but some people have ran into issues until they re-installed from Scratch.
BTW...