As long as your last entry into USA was not using B visa and you have been keeping legal status at all time, then the chance is good in Mexico. (Of course assuming you have SEVIS I-20, financial support, no problem on DS156 questions such as GC's spouse, criminal record,....)