Provided it's a upgrade disc that you've got, and it qualifies as version (the right version of Vista to 7)and your not trying to upgrade 32bit to 64bit, then go ahead. Now done it four times and never had a problem. But it can take a few hours depending on what you've got installed, with long periods of seeming inactivity. Be patient.
How to get Windows 10 now: how to download and install Windows 10 even if GWX.exe is missing