Yes, freshly ground beans make a huge difference whatever the machine so it’s good to have a good burr grinder at home which will grind fine enough for espresso. I haven’t found one that I like yet. Realistically, few domestic kitchens have room for a professional machine but you can get some pretty good home models.
I have three: a Gaggia Baby Class; a cheap DeLonghi machine that cost about £70 new but I bought from someone second hand; and a manual Presso machine which I had to get due to working in a hotdesking office. Of those the DeLonghi is the best, and the Presso second best. The DeLonghi consistently makes a really good espresso with a deep and lasting crema. Just goes to show: you don’t always get what you pay for.
I don’t like pods: they generate unnecessary waste; they’re hugely expensive and they restrict your choice of coffee to those approved by the manufacturer.