Kind of;
I made it so the game checks to see if the "Jumping" switch is on, and if the player x,y is the same as the events x,y to defeat the enemy. However, this has some lag to it, and you have to jump while in the enemy to be 100% certain your attack will work.