Can I format a drive and then put my XP backup on.

I want to take m old hard drive reformat it and use my dvd r backup to put windows xp sp 2 on it. Is this possible im terrible with software.