Of course! You just need to code it according to y velocity.
If you're going up, do the jump animation (without the falling frame). If you're going down and you're not on the floor, do the falling frame.