I've tried this before for egg hatching and I'm fairly sure it does not.
Also, if it's for happiness that you wish to do this, there are much faster ways than walking to raise happiness (+1 for every 256 steps). More on happiness here
And what it all comes down to
is that everything's gonna be quite alright