Note that gun regulations are actually rather stricter in Norway than in the US. For example, automatic weapons and many high-powered guns are completely banned.
That said, I do believe that the relative safety of Norway is due to other, cultural factors. (I'm Norwegian.)