Yes! Please make sure that your passport is valid until at least 6 months AFTER the dates you intend to travel to Mexico.
Do I need a visa to travel to Mexico if I am a U.S. Citizen?
If you are a U.S. citizen, you only need a visa if you plan on staying in Mexico longer than 180 days. (source: https://travel.state.gov/content/travel/en/international-travel/International-Travel-Country-Information-Pages/Mexico.html)
If I am not a U.S. citizen, do I need a visa to travel to Mexico?
If you already have a visa to travel to Canada, Japan, the United States of America, the United Kingdom or any of the European countries comprising the Schengen Area, you do not need a visa to travel to Mexico. Otherwise, you do need to apply for a visa to travel to Mexico.
(source: https://consulmex.sre.gob.mx/toronto/index.php/en/servicesforeigners/doclegalization/52-conservices/225-visitors-who-do-not-require-a-visa-with-a-stay-up-to-180-days)