That would reduce the number of guns on the streets. It wouldn't have an immediate effect since the guns currently on the streets wouldn't just disappear, but it would make it harder for criminals to get hold of new guns to replace the ones they lose when they get caught, and make it harder for new criminals to get a gun etc. Over time that would lead to less guns on the streets, and less gun violence over all.