No. The grouped unit that takes the defeated unit's place continues its turn from where the previous unit left off, which means it does not get to attack as the previous unit did.

However, the new unit will still retaliate from the first attack against it, even if the unit that was previously on top already retaliated.