No, this won't work automatically. When you sync to a new library it will erase the phone and put what is in the new library on the phone. iPhones don't have this sort of backward syncing functionality.
Sorry, I hit the submit button too quick... If you have an external drive large enough you can simply place your entire iTunes folder on the external drive and then onto your iMac.