We do have a stretch of 5.5' or so opaque fence (stone base with wood on top), but on the rear side the yard is somewhat congested with a pool equipment enclosure and caged citrus trees, so we don't know if it is all the clutter or the opaque fence instead which make the deer reluctant to exit the yard by that route. We know they are right there on the front/opposite side of the fence (as they always eat my agapanthus blooms), but we have never seen them try to jump the fence from the front. (Then again, apart from the visual obstruction, there is noise from the ac unit and also the pool equipment which may be offputting to them.)
The deer have a nearby visually unobstructed route through the neighbors' yard which they use in preference to tackling that stretch of fence. My guess is that if there is an easier route to go than jumping an opaque fence, one where they can see everything around them, they will go that way.
Cinta, edited to add that my sole hosta is in a thoroughly fenced side yard where the deer do not have access. A year or so ago we discovered that we had rabbits, and something (almost certainly said rabbits, but possibly a ground traveling gopher (which I caught in an electronic rat trap)) was chomping on that hosta. I got a rabbit spray from the Deer Out company and drenched the hosta that one year, and have had no issues with it since (even though we still have rabbits, which really, really like that part of the garden).