Sure, if that would actually solve the problem of terrorism. But causing anguish and rejecting entire nationalities of people is not how you prevent a very small minority of people from wishing to do you harm. 

The logic seems to make sense. Want to stop illegal immigration? Build a wall. Want to end terrorism? Ban anyone who "looks like a terrorist". 

But those types of things actually do nothing, I'd argue, to keep anyone safer. They just raise the stakes. 

So many terror attacks are home grown. What are you going to do next after a ban and the attacks still occur? Ban certain websites and apps if you're of middle eastern descent? Where is this going?

What motivates terrorists and how they recruit isn't a secret. I think we need a dual approach of security and sound foreign policy that cripples any motivation. It's not some holy war as George W. Bush originally painted it as. Remove the incentive of troubled young people to feel vindicated and accepted by terrorists groups.