Yes, but you won't see much of Florence of Pisa. You can catch a train at Roma Termini that will get you to Pisa Centrale at 8:23 am. You can walk to the Leaning Tower in about 15 to 20 minutes and see some of Pisa along the way such as the Piazza dei Cavalieri. There's a regional train at 9:54 am that will get you to Firenze (Florence) at 11:07 am. You can leave Florence as late as 10:04 pm and get to Roma Termini station at 11:35 pm.
http://www.trenitalia.com/ - for trains from Pisa to Florence select all trains to see the regionale trains; there are few fast trains on this route.