Building a fortress overnight is a classic trope in novels, with many famous battle cases—like pouring water at night to make an ice wall, or Kinoshita Fumijiro tying logs into rafts and floating them downstream, constructing Moyu Castle in a single night. But these stories are either folklore or tales of legend; whether they really happened in history is questionable at best.
Take Kinoshita Fumijiro building Moyu Castle overnight—odds are, it's just made-up. The story originates from the Illustrated Taiko Chronicles, which was then copied into Martial Arts Night Talk; the former is a storytelling novel from the Edo Period, the latter has mostly been deemed pseudo-history by modern scholars—full of utter nonsense that doesn't match up with any archeological evidence.