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.
Reporting income when actually or constructively received and deducting expenses when paid. Certain businesses may not use the cash method.