You can, but you'll get a higher yield if you grow your peas outside in the garden. If you grow your peas in a pot, they'll need more water and fertilization than peas grown in the soil.