is it required to do unlocking of bootloader before installing and upgraded rom for sm-g550t galaxy on5 and then reroot
As Samsung hasn't updated your device to android 7.0 so in order to upgrade your android version you have to unlock bootloader then flash a custom recovery.

Then you can flash any 7.0 custom rom.