No, you may not drive off if you are under gunpoint in a car and you don't have cover, but to my knowledge if you hop out and you have cover and a chance of survival you may try to resist against the shooter. Like in this diagram I made: Person 3 and person 4 can get out and pull a gun in this...