Default [Q] unlocking the bootloader?

Hey guys, i recently got a new Samsung galaxy s4 gt-i9505 and i want to root it. If so, do i need to unlock the bootloader first or do i just root my phone as is? Also can anyone link me directly to a thread where i can unlock the bootloader of my phone, thank you
Press Thanks If I Helped