Yes, you can find that under
Tools – > Options – > Projects and Solutions – > Track Active Item in Solution Explorer
It’s off by default (as you’ve noticed), but once it’s on, Solution Explorer will expand folders and highlight the current document as you switch between files.