Of course! While they have separate functions, both hydraulic pumps and motors are vital elements of the hydraulic system.
A hydraulic pump is used to change mechanical power (usually from an engine or motor) into hydraulic energy. That said energy is then applied in running different hydraulic instruments in the system such as valves, cylinders and motors. Gear pumps, vane pumps, piston pumps and radial pumps are some examples of these types of pumps which all have varied features and uses.
Alternatively, hydraulic motors are the ones that convert back hydraulic energy into mechanical energies. When fluid flows through a motor of hydraulics it produces a rotating force which can be used to operate machines or drive an axle. Just like pumps, hydraulic motors too are of different types including gear motors, vane motors and piston motors.
In brief, a hydraulic pump changes mechanical energy to hydrostatic energy while a hydraulic motor does the opposite. Both are vital parts of a hydraulic system and must be chosen and maintained properly for reliability and efficiency in operation.