Yes, this is almost correct. For completeness’ sake: the linear layer does not output “scores for the classes”. It produces logits. These can be transformed into probabilities with a soft max as was mentioned earlier.
It always helps to look directly at some code, I think. At least that’s how I get to better understand these things.