Do some dinosaurs live in water?

No, all true dinosaurs were terrestrial, with the exception of birds. Animals often thought of as dinosaurs that lived in the ocean were huge marine reptiles, such as plesiosaurs, icthyosaurs, and mosasaurs.