As a DM I would ask for some kind of skill check but I would think that the action is valid.
You surrender after you're dead. Lan Mandragoran