In most cases, yes – but not always. Here’s how it’s typically done.
Changing "Bootloader Unlock Allowed" from No to Yes is not without consequences. Before proceeding, users must acknowledge: bootloader unlock allowed no to yes
If the simple fastboot command says "Flashing Unlock is not allowed," you need an official tool. In most cases, yes – but not always