The will may take this into account, but many would not.
If a beneficiary dies before the testator, then their gift would lapse.
eg. X leaves his estate to Y. Y dies before X. The gift to Y will lapse. The estate of X won't pass to Y's estate. Depending on the wording, this may mean X dies...