Male and female protagonists are both canon. Assassin's Creed Valhalla allows you to change your protagonist's gender, and has an in-universe explanation as to why that's possible.