Do Guardians get to choose their class when they're resurrected?
We know that Ghosts, using a fraction of the Travellers light, resurrect souls to become Guardians, but are people resurrected as a Warlock for example?
Or is it simply that people are resurrected and choose a role when they become a Guardian?
Is this covered in the lore at any point?
Actually, the classes aren't that much defined lore-wise. Any guardian can learn any ability, just like we can learn a new sport. Basically, any guardian can do whatever they want with the light, taking into consideration they have the knowledge and dedication to learn the skill. Quoting the Reddit user u/cptenn94:
It is important to note that the traveler didn't create ghosts to "go forth and bring me hunters Titans and warlocks". It created ghosts to revive the chosen to rise up to defend it and humanity.
All classes and abilities are just made up by the risen/guardians on their own.
Source: https://www.reddit.com/r/DestinyLore/comments/cmgw3n/do_guardians_get_to_choose_their_class_andor_can/