The average automatic pistol has quite a high rate of fire, you could probably fire three or four shots before anyone from behind got you, it wouldn't be that accurate but if you were close range then accuracy becomes less of an issue.
Of course, the favourite gang-banger weapon in the states is Israeli and that's the Uzi, and that thing will put out a stupid number of bullets in quick succession with a fairly small recoil.
Of course, that won't do much against the people
behind you.