Question Reverting to miuis stock rom?


Hello, I have a phone model Mi 4c for almost 4 years and it works like the first day, at some point the phone was unlocked, currently not with original factory software.
Once unlocked, can I return to the original software or bootloader so that I can install eToken that does not run on a modified operating system?