Sometimes yes, sometimes no. Vegetables that have a high yield, grow quickly, start from seed easily, and aren’t high maintenance are often worth the effort. Otherwise, it can be cheaper to buy them from the grocery store. Growing your own vegetables is best when you have room for it, you can easily preserve the extras, and can extend the growing season through seed starting or season extenders.