Yes. You are transferring Egg Moves correctly.
As long as a male Pokemon knows a move that the offspring can learn as an Egg Move or TM/HM, and the two Pokemon are in the same egg group, then the offspring will learn the move.
Source: Experience with breeding