According to Mactracker the two iMacs have the same logic board system bus (1066mhz) so if the processors form factor are identical the 3.06Ghz should fit.
open