It can be done but as with any underground cable it is not ideal as it becomes a weak spot for potential issues especially if it is not sealed properly from moisture I would definitely recommend either avoiding it or join it at an accessable waterproof junction box on a building wall or fence post for example