Yes, however that doesn't work on all devices. Some of them are pretty much stuck on locked. The xperia t for one can't be unlocked without the sony code, no workarounds found as of yet. That being said, most devices are easy to unlock, just gotta be careful when buying one and do your research first.
Also remember that rooting and flashing voids your warranty. While it was unnecessary, I actually waited a year before unlocking my bootloader just because I wanted to be super sure the device was fine :/
Bookmarks