In a nutshell, YES! Two days is plenty of time to explore the beauty and culture of the city, as well as taste the best food that Florence has to offer. Obviously, as with everywhere in the world, the longer you stay in a place the better, as you will be able to fall in love with the city and the people more.