To confirm this you should check Mexico's Instituto Nacional de Migración...
http://www.inm.gob.mx/index.php/page/Tramites
Choose your nationality and "Visitar México" and the site will tell you if it's OK to travel with the US visa or not (I know that for some nationalities this is possible but maybe it isn't the same for everyone).
Good luck