Preventing terrorism is not the primary goal of the wall, only an added benefit. The primary goals of the wall is to stop the flow of undocumented people and illegal drugs. Any prevention of terrorism is an added benefit to the utility of the wall, however small the added benefit may be.