Yes, if you want to use a workflow, etc. to pass the correct text that will work, but if you want to have it be dynamic you can use states and set them based on what is selected, etc. (like in a menu for instance).
That’s what I do currently - my navigation menu is a section and tab structure to represent a top-level menu and then subitems underneath said menu. When I click a link, I update the states to reflect what was clicked.