It's proven and well accepted that children learn while still in the womb. This requires memory of sorts, preverbal memory. A child doesn’t stop remembering when born.