Upgrading to W8 from another license

Hi. I've got a Vista license that came with my laptop, but my laptop now runs Ubuntu. Does anyone know whether I'd be able to use that key to upgrade to Windows 8 for $40 and then use it on another laptop?