As a fiction writer, of course, you need to take some leeway with certain aspects of history to make the story work.
The history needs to serve the story, not the story the history. But at the same time you can't stray too far.