In 3rd world countries everybody who can afford to uses security walls and security doors in a similar way that our crappy neighborhoods have bars on their windows and doors. Formerly safe and secure middle class neighborhoods in Western nations are entering that phase as the 3rd world principles invades us. While diversity is our strength, watch how strong we'll have to be to resist the carnage.
If you build the wall high enough yes. It's been well shown in crime surverys though that burglars don't like to be seen and high walls (normal size) and hedges actaully increase the chance of being burgled. The way around this is to have a see through deterrent such as a steel fence / wall fence combo. This then creates a double whammy of it being diffcult to get in (and out if spotted), but the burglars also in plain sight to neighbours / passers by if they do get ov er the fence.
On my own home, I have a 10ft hedge around the rear of the proeprty, but the rear gate which is viewable from the road and aligns wih the house, is a metal gate. This makes entry diffcult but ensures anyone getting in can be seen from the road whilst making entry to the property.
If you absolutely want a foreign style compound, then you're probably looking at a wall of the type used around prisons ie 10ft+ with rounded stones on top (these prevent grappling which is why they're used). However, then you home also becomes a prison and any view you have obstructed. You still have the same issue tht if they do get in, then you're alone in so far as no-one can see what's happening or as they say in space movies, no one can hear you scream!
BTW I have some large "Beware of the Dog it Bites, You have been warned" signs front and back on my property. I also have an XXL dog bowl and some large dog toys in plain sight through the rear gate...