Yes.
If you maintain the manager for each employee in your Mendix app, you can assign performers using a microflow. In the microflow, return a list with a single element – the employee’s manager. Then in the user task, click Auto Assign when result is one user:
Hello Samarth,
I think the answer from the following question answers yours:
https://forum.mendix.com/link/space/workflows/questions/109218
Good luck!