Not really. Ever since the 1840s it's existed at the whim of the US, same as Canada.

The US was just too cucked to take the northern territories of Mexico which would have limited Mexico's ability to fuck with the US.