I thought about it while writing my fanfiction, and haven't seen it being answered anywhere. 

The question is: "Do zombies have memories about their life before they died?".

It may look stupid at first. I don't mean love the people they used to or something like that. I 'm going to give you an example to make it clear.

Imagine Rick and Sophia are in the forest and rick is bitten and about to die. He then tells sophia to hide in a house nearby until the others arrive. Sophia does so. Then Rick dies and reanimates. What will he do? Will he wander aimlessly looking for flesh, or will he remember that Sphia is in the nearby house and try to get in to eat her?