No, Luke walking away from everything was established by Abrams and Kasdan in TFA. What he was doing looking for the first Jedi Temple was open-ended, but walking away from everything and allowing the tyranny of the First Order to rise in his absence was already firmly established in episode 7.
Han: This map's not complete. It's just a piece. Ever since Luke disappeared, people have been looking for him.
Rey: Why did he leave?
Han: He was training a new generation of Jedi. There was nobody else left to do it, so he took the burden on himself. Everything was going great, until... one boy, an apprentice, turned against him and destroyed it all.
Luke felt responsible. He just...walked away from everything.
Finn: Do you know what happened to him?
Han: There were a lot of rumors. Stories. People who knew him best, think he went looking for the first
Jedi temple.