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.
Shifting income to a later year, such as where you defer taxable interest to the following year by purchasing a T-bill or savings certificate maturing after the end of the current year. Investments in qualified retirement plans provide tax deferral.