Get your taxes done using TurboTax

Yes you can, the fact that you sell it has not effect on the fact that you did buy it.