Using OS X of a new MacBook on an "old" iMac
The licence the install of OS X included with a new Mac is exclusive to that Mac, you can't re-use it on another. Buying Mountain Lion from the App Store entitles you to install it on all of your personal Macs.