I sold a home and had a 7K loss. Can that be applied to my taxes?

I had to pay the 7 k at closing