Not necessarily to the extent of large positions such as the French Maginot line, but more like places on the outskirts of Aachen or other important rural positions in towns/villages
From 1906 onwards, a german soldier would start to dig a foxhole as soon as he was told to prepare defences. These foxholes would then be deepened, enlarged to trenches and inter-connected with even more trenches over time, resulting in a trench sytem that is very similar to what would emerge during WW1, just smaller. (1) This practice has survived to this day, soldiers are still issued spades and get drilled in entrechning extensively. So yes, if they got a few hours to dig in, they would always dig trenches.
(1) Source: Ralf Raths - Vom Massensturm zur Stoßtrupptaktik