Stock Trading Losses

Had minimal income during and right after covid. Started day trading. Had losess of 12k over last 3 years.

Made decent income this past year. Can i deduct the 12K incured over the last 3 years in trading losses from income generated from other sources in 2023?