Yes, it can. Totodile can learn Hydro Pump through an Egg Move when a Female from the Totodile line breeds with any male from the following list that knows Hydro Pump:
Squirtle, Wartortle, Blastoise, Psyduck, Golduck, Poliwag, Poliwhirl, Poliwrath, Horsea, Seadra, Kingdra, Lapras, Omanyte, Omastar, Marill, Azumarill, Remoraid, Octillery, Mantine, Mudkip, Lombre, Surskit, Masquerain, Pelliper, Milotic, Huntail, Gorebyss, Relicanth, Piplup, Prinplup, Empoleon, Buizel, Floatzel, Tympole, Palpitoad, Seismitoad, Tirtouga, Carracosta, Alomomola, Froakie, Frogadier, Greninja, Skrelp, Dragalge
Source