No, 2 years ago I ate amazing cherry tomatoes from a friend garden. He told me he didn't plant them, they came out themself out of the shitty store bought ones that he discarded one day.
The variety matters, but that's not the end of the story.
The other issue with many plants is that they're picked before they're ripe - if you'd eat it straight away, you'd wait longer before picking and it would be tastier, but as you want them to survive transportation and long waiting in store shelves, you're picking them long before they're fully ripe.
Of course, it's a collection of things, but it's not true for tomatoes in can, which you can put in right after the harvest. And my ex house mate cans from the garden would always feels like fruit juice while the supermarket one, well...
The variety matters, but that's not the end of the story.