It’s even got vectored thrust during the boost phase (has a integral boost/sustain grain) so in theory you could probably use it in very close too if you’d swapped out it’s SAR seeker for say the AIM-120’s seeker.
Just a note: ESSM has a boost only rocket motor http://www.designation-systems.net/dusrm/m-162.html