In case of different version (Home Premium vs. Professional vs. Ultimate and Retail vs. upgrade vs. OEM), the answer is definately NO.
In case it's same version, then there is a way to change the key, although I don't know it (never used it). But it's not a guarantee that it works.
To sum it up, it's a small chance that it would work. So be prepared for the worst case.