Why don’t aeroplanes fly in a straight line?

Is a straight line the shortest path?