If she had a hand gun, she could protect herself and prevent the robbery? yes, only if the suspect had a fake gun. Otherwise, the outcome is unpredictable.
The better solution for people like her is not going to unsafe part of town at all, especially in the night.