Yes, it is foreshadowing, a literary device that hints or predicts what is going to happen later in the story or an advance prediction about the future.
Yes, it is foreshadowing, a literary device that hints or predicts what is going to happen later in the story or an advance prediction about the future.