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.
Net income after claiming all deductions from gross income and adjusted gross income, such as IRA deductions, itemized deductions, or the standard deduction, and personal exemptions.