Yes, waterproofing wood for the shower can be achieved by using sealers.
They’re usually a clear/transparent finish that goes on the outside of the wood. Sealants such as polyurethane, varnish, and lacquer give excellent waterproofing and can be used for showers.