I'd say it depends on what sort of pump you need, and how much power it will draw when it runs. Solar panels can be had that generate up to 130 watts. But that's at !:00 PM on a clear day. So, you would need a knowledgeable person to design your system. The company that designed and built mine had such people design the system that runs most of the systems in my house.
I also have a battery storage system that allows me to store some of the power the panels generate for night use or in the event of a power outage. As a result, I pay only for the connection fee to the grid. That's because my system generates more power than I use for the year.
The bottom line is, one, how much would it cost and two, what are your needs. E