It was "foreshadowed" in the sense that Hasbro couldn't keep their mouths shut about it and most fans knew about the change in advance. Beyond that, there were a few subtle cues, mainly Celestia talking to Luna and stuff like that in some of the early season episodes, but they mention she was going to be transformed into an alicorn specifically, no.