But keep in mind that a dog determined to get out will risk the shock and jump right on through the invisible barrier. Also, an invisible fence won't keep other animals from entering your yard.