Hi Justin & welcome to the Rs forum -
You don't mention what month you'll be traveling: it can make a difference. As well....
... just want to wander around the town of Cinque Terre and have
lunch/dinner there to enjoy the environment and the view of this town
The CT isn't a single town: it's a group of five (5 = cinque in Italian) very small villages: Monterosso, Vernazza, Corniglia, Manarola & Riomaggiore. As a rule many of us advise against doing it as a day trip as, during the busiest seasons, it puts you squarely in the middle of a dense, day-tripping mob. It also eats time getting there and back to Florence - or even getting there from Pisa - and you're going to need the flexibility to work around the weather: it's no fun in rain as the vast majority of sightseeing is outside. Flexibility might be hard to come by if you've advance, timed-entry tickets to attractions in Florence.
In any case, it's more time sitting on trains than I would personally want to spend on a day trip. Those hours would be more economically spent sightseeing in Florence - or closer to it, anyway - than on a CT/Pisa combo. Just my IMHO...