No! That's no deterrent. We already have millions who don't plan to become citizens and are eating up welfare benefits and committing crimes.
No more.
Have plenty of tear-gas, skunk-water and rubber bullets and use them on any mob (men/women/children) when they are not in a live-fire situation. Even unarmed mobs of women and children should never get up close to the police/military lines. Mobs must be dispersed long before that and leave only the stray rioters to the police/military lines.
And always have the real firepower on hand and ready to use the instant the mob escalates the situation.