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 corporation that elects S status in order to receive tax treatment similar to that of a partnership.