You look at a lot of the big gardening "influencers" on social media, and most of them have multiple enormous gardening beds ...
If you don't have room for a garden, or only want to grow a few vegetables, planting in containers is the best way to go.