That’s the right mindset.
For those reading, don’t let them fool you about down selling your worth. If you’ve got the skills they want, and you show that, they’ll pay you. Job history conversations are just a way to try and leverage lower pay or benefits on you.