Yosef Karo, Translation:Shulchan Aruch — Orach Chaim 637…
“ If one stole pieces of wood and made a sukkah with them, even if they did not attach them or alter them at all, they have fulfilled their obligation. The Sages ordained that the person from whom the wood was stolen is owed only its value. However, if someone stole a sukkah that was built on top of a ship or on top of a wagon and dwells in it, they have not fulfilled their obligation. ”
