Except in the case of fleeing troops (as discussed earlier) and pursuing troops (see the Close Combat Phase) units are not permitted to move off the board.
However, a unit next to the board edge may still pivot or wheel even if this would temporarily take some of it over the board edge, as long as it does not end its movement over the board edge.