In a tactical battle, it is possible to set a destination that cannot be reached due to enemy units in between. The unit then pathfinds and tries to get there.
It shouldn't be possible to select destination squares that can't be reached in 1 turn, particularly because of enemy units.