Yes, zucchini plants will thrive well in the pots as the plant does not has big roots. They can suit well in the 5-gallon space container. Make sure that the pot you have chosen for zucchini has good drainage holes in it.