Indeed. This is because you get phase differences (due to finite speed of signal in wire, even though it's near c) over those distances. Converting to DC and then back to AC at the destination avoids any concern about phase mismatch.
It isn't just that. afaik, a much larger issue is related to capacitive and inductive losses of AC. Even on the railways, an adjacent 25KV overhead line can induce a few hundred volts into the adjacent "dead" line, which is why they must be earthed before you can work on them.
There are two main reasons for using DC for long distance power lines:
1) The line connects two synchronized grids. It's much easier to convert electricity to DC and back to AC on receiving end, than to synchronize grids or to implement something similar with AC.
2) The line runs under sea water for a significant distance. Due to the conductivity losses DC is more efficient in such contexts that AC.