It is this way. But if for some reason ambush failed - it is up to the attacker if he wants to continue or call off the attack.
If anything, it may be reasonable to continue the attack just to retain the initiative, not giving any space to counterattack.
I personally suspect that it's actually medium-to-low range combat where in a fight between two modern air combat systems, modern aircraft will have the most advantage.
Upgraded 4th gen aircraft, such as F-16V, can lob BVR missiles at 5th gen opponents under ground/AWACS control. Their datalinks are reasonable, their radars are modern, their weapons are the best in the west. Their weaknesses in a controlled environment are solvable.
How F-16V will perform, say, in night group dogfight against 5th gen opponent, relying only on helmet night vision and only your own forward-looking FoF, because aggressive 5th gen force simply merged in - I wonder.
Fighting blind against a stealthy, fully interlinked opponent who isn't blind at all - doesn't sound fun.
There is often some sort of unspoken truth, that close-range fighting is fairer to older fighter designs with the newest upgrades. I honestly wonder if it's the case...