No, it was a big patch of Mexico we won in a war they started.😇 We bought a small sliver in the Gadsen purchase.
Note that we bought the land containing California et al for the sum of $15,000,000 and agreed to pay off most of Mexico's debt. This is very clear in the Treaty of Guadalupe Hidalgo.
The American southwest was purchased from Mexico, not stolen.