Here's a pic of the India/Bangladesh border barrier, which runs about 600 miles in length.
Here's a pic of the Hungarian border fence, which appears to be working quite well:
Here's the fence Greece built on the Turkish border:
Here's what Turkey built along the border with Syria:
Gee -- as far as these countries are concerned, "fences work"...