Yes. These would still be considered the sales expenses and would be deductible expenses even if it is on your second home.
On the page after you enter the sale, you will be given the chance to select I paid sales expenses that aren't included in the sale proceeds reported on the form.

**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"