Offsetting Short Term and Long term gains in the same year.

Can either excess short term losses and/or excess long term gains offset the other in the same tax year? (i.e if I had excess long term losses of say $50K in 2025, but short term gains of $75K, would my net be $25K?