That's possible, but you'd need to clearly mark it.
For two feet it's overkill, but normally, especially if there is the possibility of going between the two structures, you'd dig down 4', lay down your cable so that it is going down vertically in both structures and is well below the frost line where you bury it horizontally.