I'm not sure if the interaction changes when using a Ditto as the "female", but in the way egg moves work that should, in theory, work without any problems. I did a little research into it myself just now, and I can't find anything that conclusively states that a male with an egg move using a ditto as a female won't inherit a valid egg move.
So, it should work. Either way, no harm in spending a little time and testing it out.
XI Wiki



