I have capital loss carryover from my previous year in Schedule D/line 16. When I carryover this year, can I write off both short and long term gains?

Tax loss carryover from previous year is a combined loss of long and short. If my short and long gains this year are less than the loss from previous year, can I write the gains totally before deducting another 3000 in 1040?