That would probably be the best idea. Your computer may have the license key on a sticker on the computer itself, in the documentation that came with it, or if it's a newer computer the license can be embedded in the motherboard so you should only need to download the correct Windows version from another computer and install.