Deductions & credits

Yes, when you sell the property the land needs to be sold separately from the building since they are in different categories.