Only if the egg move is part of the Pokemon's moveset.
Energy Ball can learned by Treecko via Level Up and by Egg Move. So if you had a Energy Ball Treecko via breeding, delete it, you can relearn it when it reaches it's appropriate level.
If breeding is the only way to obtain a move, like Stealth Rock on Ferrothorn, then no.