Short answer, you can, but why would you.
In all Gen 4 games, Aerodactyl can learn both Earthquake and Stone Edge via TM. This is the only way to get both moves on Aerodactyl in the first four generations. This means that the father can, (or will if you're breeding with a Ditto,) pass on Tms or Hms. And thanks to sumwun, we know that prior to Gen 5, Aerodactyl is the singular Pokemon that can pass down Stone Edge and Earthquake via breeding, so, if you teach an Aerodactyl Stone Edge and Earthquake, and then breed it with a Ditto, the child will have those two moves.
Your doing an obvious extra step in the process but ¯_(ツ)_/¯
Source: cross examining Aerodactyl's moveset page.