Should wood be treated or sealed before tiling?
The wood should be pressure-treated or naturally rot-resistant.

Sealing the surface may reduce warpage, but will have limited effect on long-term rot issues.