Offsetting Capital Gains with a Capital Loss from the Sale of a Personal Use Vehicle

I sold a personal use vehicle this year at a substantial loss from what I paid for it.  I will also have significant capital gains from the sale of stocks.

I am aware that the loss on the sale of the car is not deductible.  However, can I use it to offset some of the capital gains from the sale of the stock?