Yes. Texas was part of Mexico after Mexico's independence from Spain in 1821. The region was originally Spanish territory (New Spain) before becoming Mexican.