That's roughly how the original Sidewinder worked. The original concept was to reduce near-misses. If the pilot could get on the target's tail and aim at the engines, it usually got a hit. That was the same task as getting into firing position for guns. Hit rate about 8% in combat.
Later versions allowed launches from longer ranges and from off-angles.