No. It is not.
Unlock the bootloader is just to allow you to flash new rom (custom) by TWRP or other recovery tool. You do not get root access by this.
Root is more. Check internet for details and difference !
Steps:
1. unlock bootloader - see post 1
2. install latest TWRP for your device with...