I know you can relearn them if you forget then, but idk if you can transfer them
In Gen IX, it seems Pokemon can re-learn any move they learned from a TM or event. However, moves that were learned by a pre-evolution and egg moves appear NOT to be re-learnable