Yep.
I knew someone who was planning to buy property and build a house in Mexico.
That person was crazy. They can decide at any time just to take your property, no questions asked, particularly if you aren’t a Mexican national.
I have warned people against building in Mexico. Some listened, some didn’t.