Can you put a windows 98 hard drive in a XP computer and use it as a second drive?

Yes you can. You can use is as a slave drive. There's nothing to worry if you have windows 98 installed on the HD.