Of course they have a memory, they just don’t process it through an emotional brain. So what they learn by experience stays with them (this animal is dangerous, that one is not, this animal is prey, that one is not, etc), but they don’t have an emotional response to those memories. Why do people have snakes for pets?