Yes assuming you want them all on the same computer. It's how I made a big laser cannon for a ship I'm working on. You just have to have them all connected to the same computer.
Here's an example of how I'm doing for my ship: x = cannon, _ = another weapon
X_X_X_X
_X_X_X_ = front view
X_X_X_X
XXXXXXX
________ =side view
XXXXXXX
Since they are in straight lines, they don't intersect on the Y-Z axises thus allowing multiple shots from different areas.
As long as there is one block (be it empty space or another block between the entirety of each group of cannons
If you want them to be on separate computers but on the same hotkey, That doesn't seem possible for now.