Sometimes, but not always. That depends on the roof structure, ventilation, local requirements, and whether doing so would create a compromised assembly.