Yes, that is a major use of the past perfect.
Student or Learner
I understand Past and Past Perfect tenses are both situation happening in the past.
And Past Perfect tense is the situation happening earlier than those in Past tenses. Am I right?
It is unnecessary to capitalise the names of the tenses, Ju.