Yes, the Chanson de Roland was written during the XIth century, 3 centuries after the "facts" it is supposed to give the story.
Furthermore, a sequel has been added later: Roland and Ferragut, the battle of Sahagun, and the whole story of Charlemagne and Santiago was written even later, during...