For archers, this is certainly the right approach, but if you consider the speed of ballistas, it becomes quite tedious. Therefore, I first decide whether I will immediately engage in battle or focus on defense... :)
If it's for defense, I place ballistas (let them sit in the castle tower and not venture out), otherwise - pikemen.
Auto-translated