Can I use someone else's Windows DVD to install Vista.
Yes this will allow you to install Windows on your PC as long as you your own the original product key.
Windows product keys are not tied to specific CDs or DVDs, only to specific versions of Windows.
You could use a friend's retail copy of Windows 7 Home Premium to reinstall Windows on your computer as long as you use your unique Windows 7 Home Premium product key.