It most likely would have prevented this particular latest tragedy. The confiscation of all legally held (same/similar) weapons would have to be undertaken to further insure the probability of this type of mass carnage not repeating in the future. To remove illegally held weapons, the punishment of use or ownership of such would have to be draconian. A reward (turn in) program could be enacted but would be competing with the black market so the cost will be prohibitive. Then there's the little matter of the 2nd amendment and dealing with a new class of former law abiding citizen's turned criminal for their confiscation refusal.
Short of these acts, what realistically can be done? Talk is cheap.

