That's completely fine; as strange as it may sound, those two Pokemon can still breed together, and Ditto should be able to as well. As long as the Day Care man doesn't say, "The two prefer to play with other Pokemon than each other," your Pokemon can breed.
They have a 19.8% chance if producing an Egg per 255 steps, so it may take some time to get an Egg though.