You could but then you also leave it wide open for others to mess with it if they get their hands on it (evil maid attack)
There's a reason security-conscious roms like GrapheneOS and CalyxOS only support devices where the bootloader can be relocked after installing.