No, but there are things that could have probably reduced the number of casualties, things such as outlawing high capacity magazines and devices that increase the rate of fire of semi-automatic weapons.
You can never completely stop people who want to do evil, but you can make it harder and limit the damage.