Don't worry if you don't do anything stupid to your phone, it won't get security problems and you won't have some S.W.A.T team chasing you for unlocking the bootloader :qI'm new here so sorry for the stupid question..
Is it safe to do such thing?
All jokes aside, you should be aware that unlocking bootloader will wipe your phone, meaning data and such.