Yes, if you sold both the house and the land, you would allocate the sales proceeds and the sale expenses to both. Use your basis to calculate the allocation percentages.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"