Yes,what will happen to them will depend upon them having their names written in the Book of Life or Not....as mentioned in
Revelation 20:12-17.
12 And I saw the dead, the great and the small, standing before the throne; and books were opened: and another book was opened, which is [the book] of...