Yes, you can claim losses. And tax-loss harvesting is very much a thing.
But little things like the year the gain was realized versus the year the loss was realized can really destroy the trader. Especially if they're paying taxes on short-term capital gains versus long-term.