It can, that's part of why these newer planes cost billions of dollars per unit. Assuming the plane is still controllable though. Usually in that case you wouldn't eject, but its technically possible. There was a case where a US pilot ejected on accident and their plane landed itself.