It is preferable that a title plays both roles, because the reader may be disappointed with a gap between the title and the document if the title plays the former role poorly, and the reader may not read the document if the title plays the latter role poorly.
it is very important what title is attached to a document.