Can I use Mountain Lion from a new laptop on an older imac?

Hello,

I'm in the market for a new MBA and was wondering if anyone knows if the Mountain Lion OSX on there can be transferred to my imac (currently running lion), or will I have to buy a copy through the app store?

Ta all