No. Recognize that the terrorists were from Europe. Recognize that integration, investing in suburbs, and improvement of basic living conditions has failed for decades. Then start solving these problems.
People don't spray random other people with automatic weapons because of the marginal level of welfare benefits. The fact that you can even entertain that opinion is mind boggling.