Depends. Most castles had defense in depth. You could lose a few wings and survive long enough for external defenders to come rescue you.
I don't see why you would fight on the stairs though, as opposed to running to the top where you can close a door behind you, or fight from a flat floor.
I don't see why you would fight on the stairs though, as opposed to running to the top where you can close a door behind you, or fight from a flat floor.