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

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