Usually, driving is too fast for the game to register as walking. However, slow speeds, like when commuting in heavy traffic, may count.