I want to root my Samsung Galaxy S6 g920f whose running nougat 7.0 using the method provided in this guide https
/www.tomsguide.com/us/root-samsung-galaxy-s6,review-4344.html
The problem is that I'm not sure if I need to unlock the phone with bootloader before I'm trying to root it, given the fact that the method mentioned in the guide includes flashing with Odin, I know that you have to unlock the phone before flashing a custom ROM or recovery but does it apply here too?
Do I need to unlock my phone before flashing or not? I don't want it to end up bricked.

The problem is that I'm not sure if I need to unlock the phone with bootloader before I'm trying to root it, given the fact that the method mentioned in the guide includes flashing with Odin, I know that you have to unlock the phone before flashing a custom ROM or recovery but does it apply here too?
Do I need to unlock my phone before flashing or not? I don't want it to end up bricked.