The Gemara (Sukkah 10a) cites a Baraisa: סיככה כהלכתה ועיטרה בקרמין ובסדינין המצויירין, ותלה בה אגוזין שקדים ותמרין ורימונים, אסור להסתפק מהן עד מוצאי יום טוב האחרון של חגג-If one covered the sukkah with valid schach, decorated it with colorful curtains and patterned sheets, and hung nuts, almonds, and similar items in it, one may not use them until after the final day of the Chag.
The Gemara in Beitzah (30b) explains that this prohibition applies because the Shem Shamayim rests on the sukkah, including the items used to beautify it.
The Penei Yehoshua explains why the Baraisa begins with the phrase, If one covered it with schach in accordance with halachah. He suggests that the Shem Shamayim rests on the decorations only when they are placed after the schach. If the decorations were put up first and the schach was added afterward, the decorations may not become kadosh. The Penei Yehoshua' presents this as a chiddush and remains uncertain about the practical halachah. Nevertheless, the idea conveys an important lesson in avodas Hashem.
At times, people take on chumros and added acts of piety while neglecting the fundamentals of halachah. This is a mistake. Such piety can sometimes distract a person from shortcomings in basic obligations, especially in areas of bein adam l'chaveiro.
The lesson of the Penei Yehoshua's chiddush is that the sukkah must first be built according to halachah before it is decorated. So too, a person must first be careful in basic halachah, and only then add chumros and expressions of piety.
יו"ט א דסוכות תשפ"א מאמר א
7 Sukkah 10b.