(Also—related search suggestions prepared.)

But it wasn't for Office.

No. Retail keys can be transferred, but only if you uninstall Office from the original device first. If it’s an OEM key, it’s permanently locked.