Absolutely. But wasting money on fence that will be breeched and will probably be built by illegals themselves isn’t the answer.
That all depends on how many thousand volts you charge it with.