You can hack it, but you can only either activate or deactivate it. I don't think it would shoot for you, even then, they destroy turret pretty quick. The BoS spawning endlessly, so it's pretty useless to take them head on in the first place. It's more likely to go on the side building, destroy the machine, allowing synth soldiers to relay there.