Example of such research, which is common, ethical, and completely legal to do:
https://www.shrm.org/resourcesandtools/hr-topics/talent-acqu...