Is it possible with a flow sensor and a 0-10V pump to control the speed of the pump?

Ex. If I want to keep the flow at 3000l/h, P4 can itself adjust the pump to keep the flow stable on 3k?