In multiplayer this seems to be fully true. In singleplayer basically as well. However in SP I've had units randomly be disbanded even though I still had enough science/gpt left, which shouldn't happen for my understanding of this matter.
Bonus question: If a unit will be disbanded, will it always be my newest unit or what pattern does this follow?