If you have a Galaxy S7 or newer, your phone is equipped with protection from water, dirt, and grime. An IP rating or Ingress Protection rating is a universally accepted measurement for dust and liquid resistance.
Almost all newer Galaxy phones have an IP rating of 68. That means you can bring your phone on your adventures without having to worry. The Galaxy S10 5G has an IP69 rating. The costly Galaxy Fold and Galaxy Z Flip are not IP rated.
The touchscreen may not be active in the water. If you have a Note, the S Pen does not need to be inserted to maintain the IP68 rating.