Some writers prefer not to mention famous people. They write about the unknown people. That way, the characters are formed purely by imagination… and knowledge about how people were and how they behaved at that time and in that place.
Others purposely write about famous people. They leave themselves more open to criticism, because they can’t always stick to the truth, but we’d be poorer without their stories.