Yes and no, depending the hardware structure of your controller.
“Soft real-time OS” is enough except for servo control tasks. If servo control tasks are responsible for the position, velocity and current control of PMSMs (permanent-magnet synchronous motors), the servo control tasks have no way of escaping from “hard real-time OS”.