Get your taxes done using TurboTax

Yes if you still have a loss after the gains.  But remember the gains will use up more of your carryover.  Then you can still take up to a 3,000 Loss after you cover the gains.