YES
And addtional spend some time and study the usage of the instruction STRUC and ARRAY.
With these instructions for OOP you are able to design objects per soil sensor and pump. Thus will bring you to compact and maintaible sketch with groth potentioal for more pumps and soil sensors.
Have a nice day and enjoy coding in C++.