You can form memories based on what others tell you. A lot of early memories aren’t “actual” memories (horrible term, there’s no such thing, just memories), but like people tell you enough about it that you form a memory around it. Or it didn’t actually happen to you, but rather it was something you saw on tv or heard about, but then you remember it happening to you. Memory makes no distinction between reality and fiction.