Password for the macOS Recovery Partition on Hackintosh

I wanted to ask if it is possible to set an administrator password on the recovery partition, as on real Macs? So that no one can reinstall the operating system without knowing the password. Thanks

Author: @EduardBul