"Anna did a lot worse than her good friend Lucy on the test because she had studied so hard." is a true sentence.

Does this mean that "Anna had studied so hard."?
no