Yes. As long as the rainwater isn’t contaminated by metal residue from your roof or the barrel it’s stored in, it’s fine for your veggies.