Pine tar is a wood stain that makes wood waterproof. It has a sealing agent with a color tint that helps protect the wood from water damage. When applied, the wood can last for a long time without needing to be reapplied. However, it is recommended to reapply the pine tar after about a year. Tar has been used for centuries to waterproof wood, such as in the construction of ships.
Resin is also a popular choice for waterproofing wood, as it is already used in shipbuilding for this purpose. In addition to tar and resin, beeswax is another option for waterproofing wood. I have personally used beeswax to treat some leaks in a wooden barrel when aging mead. The best thing about these wood protection products is that they can make the wood waterproof and last for many years.
Even though tar and resin arrive late in the game, they can still be used to make sure your shelter is waterproof from the start.