Yes. While there are certain ordering rules for applying capital losses against capital gains, ultimately, long-term capital losses can offset any short-term gains.
A tax technique for receiving a refund of back taxes by applying a deduction or credit from a current tax year to a prior tax year. For example, a business net operating loss may be carried back for two years.