Yes, Mexico imports coffee beans despite being a producer. In 2020, imports totaled $242 million (UN Comtrade), making Mexico the 20th largest importer globally. Primary sources:
Imports supplement domestic production and meet demand for specific bean types/qualities.