Absolutely right! Just like we are what we eat, we are also what we think. At any given time, we are one thought away from feeling confident, happy, loving, connected...or...fearful, sad, hateful, lonely. We just have to think it and we feel it.
How many times have you had the blas, only to hear, see, read, etc. something that changed your thinking, like a phone call with good news, or a test you thought you failed and didn't. Or, maybe it was something on a commercial that touched you and stirred up positive feelings about you or someone else.
There is a lot of research on your question that proves you are right. So feel good about yourself and your reasoning skills. Some call that critical thinking - a good thing to have so you can stay the winner you are. Just remember, you are only one thought away from how you want to feel... just have that thought!