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.
Writing off the cost of depreciable property over a period of years, usually its class life or recovery period specified in the tax law.