This is correct. They go through stages for functional reasons (features to help them float along and catch planktonic food while they are devoting all their energy to growing) as well as reasons we don't much understand related to how they end up in their environments.