I do not have perfect pitch but the concept of pitch memory is something I’ve experienced. I’ll occasionally hear a chord or a pitch and then a song will also pop in my head. I started ear training in college and it was pretty rough but has come a long way