This is untrue. Your first job shows you what all the variations in roles actually are in this industry. It isn't just coding. Do the work, take note of what everyone does. And if there is something that you like more than coding, try to learn that.
You have flexibility - nothing is set in stone. Many people change gears numerous times as their career progresses. Don't stress over it.
Started on plain PHP/MySQL, moved to Python/Django, started on Vue, moved to React and Node for one job, did some Angular at another job, learnt some devops at all of them.
The best (and sometimes worst) thing about this career is how flexible you need to be - just ensure you learn the fundamentals. For example if you're doing React/Vue/Node/etc then learn JS rather than learning just the framework syntax.