Samsung Galaxy S21 overheated and battery draining fast

Yes.
It is reducing UE capabilities and DCNR when overheated.
This is the result of test of Samsung S21 that started at 25 degrees:

image

Few simple speedtestnet overheated the phone.