Can Pokémon learn moves between generations?
If you transfer a Pokémon from an earlier generation to a later one, can it learn the moves of that generation or is it restricted to the earlier ones? And can Pokémon that had generation exclusive moves learn them again (in later gens) from the Move Tutor / Reminder?
I know that from RBY to Sun or Moon they will get their hidden ability, but I'm specifically after movesets.
There is a similar(ish) questions here but it doesn't quite cover it.
Which of the original 151 Pokemon learn moves AS they are evolving?
How can I teach my pokemon moves it missed?
Solution 1:
According to the posts in this thread, a Pokémon will have the moveset of whatever game it is in. It won't forget what it's already learned, even if it has moves that it can't learn in Sun/Moon, but it won't be able to re-learn them if they forget the moves at some point.
The learnset of a Pokemon always depends on the game it's in. So, if you have a Pikachu in, say, Yellow it will only ever learn moves it can learn in yellow but when you transfer it to Sun/Moon it will only be able to (re)learn moves it can learn in Sun/Moon. It will keep the moves it had in Yellow if you transfer it but I have no idea if you can relearn the "Yellow Version-only" moves if your Pikachu forgets them.
Egg moves and other non-learnset moves were only recognized from Gen 6 and up, so anything not on the learnset will not be relearnable.