If yes its a common problem. Common solutions are:
1)Update to lastest firmware
2) Put unused app to sleep
3) uninstall unused preinstalled app
And if the problem still persist visit the service centre
Dear Samsung Member,
Greetings from Samsung Customer Support!
We apologize for your inconvenience. Please visit this mentioned link to resolve your device heating issue: https://www.samsung.com/in/support/mobile-devices/why-the-device-heats-up-during-use/
For further assistance, register your concern in Samsung Members Application (Open Samsung Members Application > Get help > Send Feedback > Error report/Ask questions).
Thank you for writing to Samsung.
Samsung Customer Support