Yeah, basically. If everyone does well, and the range of exam marks from first to last are pretty small, then any big gaps from school marks are essentially condensed/reduced to some extent!
However, if you are first place, or very very close to first place, then this whole 'ranks' and 'gaps'...