Is Mexico city New Mexico?

No. Mexico City is the capital of the country of Mexico.
Some cities within the state of New Mexico include Albuquerque, Roswell, Santa Fe or Las Cruces, but no "Mexico City".