Charizard can't learn Fly in Red / Blue, I know if I trade my Charizard to Yellow and teach it the move and then trade it back it will be able to use the move in battle, but will it be able to use the move outside of battle?

Thanks in advance