Can I write off earnest money I lost when trying to purchase a home?

The home was for personal use. The sale of the home was canceled.