Yes, it is correct.
Using your school rank and your subject rank, people can 'fill in the blanks' with your marks, because as i demonstrated above, sometimes marks can be meaningless, so rank is a better judgement. However, as i also demonstrated above, ranks can also sometimes be meaningless...