no, try read some primary sources. Like what guys like Lincoln or Grant thought about that war.
Grant call the war unholy. That the US had no legal claim to the area south of the Nueces river. not only did the US army go into the disputed area, it went south of it, into an area that was in every legal way part of mexico. (chapter 3 of his memoirs)
Grant was with the army at the border and mention that “we where sent to provoke a fight(…)” and he calls his own army the “invaders” (chapter 6 )
The treaty of Velascodo was not rectified by Mexico. Santa Anna was not in charger of mexico when he signed it. And had no legal power to do to. And even if the Independence of Texas had been accepted, the treaty do not defined the border of Texas.
The US provoked the war to justify the land grab… land it had no legal right to. It was nothing but “Might makes right.”
Actively supporting your own citizens when they move across the border. Then use the large number of your citizens as an excuse to interfere in the internal matters of another sovereign state… as I said, pretty similar to what Russia have been doing.