Investors & landlords

Yes (assuming it wasn't sold to a related party at less than Fair Market Value), the loss can offset any other income.