The preface to Pipa Xing is an important part of understanding the characters and themes in the poem and should be read together with the poem itself. The preface introduces the life experience and performance skills of the pipa girl, as well as the poet's own relegation experience, which provides the background and motivation for emotional expression in poetry.
So, yes, Pipa Xing needs to be memorized, including the preface.