Just yesterday I took an old Motorola smartphone from 8 years ago (Android 9) and put LineageOS on it.
Poof, it's transformed from unusually-glitchy e-waste to a tool someone can actually benefit from.
> So if the bootloader can be relocked
Their website says they recommend against that and will not support it, because of a high chance the device will get bricked. :(