Oh yes. This goes back at least to Late Archaic Greece. In 494 BC, the Spartans invaded the territory of Argos, and the Argives were afraid of being attacked by surprise. So they decided to do exactly what they heard the Spartan herald command, assuming that this would keep them constantly ready for the Spartans' next move. When the Spartan king Kleomenes found out what they were doing, he ordered his men to attack when the herald sounded the signal for breakfast. They caught the Argives completely by surprise. (Herodotos 6.77-78)
The same trick was repeated by king Agesilaos of Sparta in 378 BC, when he was trying to break into a Theban fortification wall and noticed that the enemy army was shadowing his every move.