While Ash encounter Ho-oh in the very first episode. It wouldn't be until episode 210 "Around the Whirlpool" in the fifth season of the original series and also encounters a baby Lugia in Pokemon: Master Quest. However, Ash did encounter Lugia earlier in the main series timeline in the Pokemon 2000 movie but this is never mentioned in the anime.