Yes, it’s possible.
Do note that the city of San Miguel de Allende requires an annual permit and liability insurance, and collects fees of about $20,000 MXN yearly.
Most clients use a facilitator ($100+/- USD) to handle the permit process.
If you’d like, one of our rental agents can point you in the right direction or connect you with a facilitator.