Yes, evidence suggests that T. Rex could have swum, though it probably wasn't very agile in the water.