You can boot the cube into target mode but it's probably not possible to migrate from 10.3 to 10.8 (which the new iMac will have installed). According to
this support article:
Migrating from OS X Tiger v10.4 to OS X Mountain Lion v10.8 or later is not supported and is not expected to complete via Migration Assistant...