Indeed. To expand on this:
create a variable representing the NPC … such as: *create npc_one in your startup
Then set that variable as 0 if male or 1 if female or 2 if non-binary in the story
Then use ${npc_one_heshethey} and so forth.
Details are in the wiki if you like that or you can find tutorials that will take you step by step through examples in: Master-List Links For Beginners