Absolutely. Produce is grown all the time in hydroponic gardens or water-based systems. There are many kinds of systems you can purchase online or even entire kits that include some vegetables to get started. A benefit of hydroponic gardens is that they can be compact to fit on top of kitchen countertops or even the size of entire rooms if you feel the need for that.