Sale of Residence in Mexico

I have owned a home in Mexico for over five years and have sold it.  It was never rented.  Can I use the $250,000 capital gains exemption when I file my taxes.