As these missile turrets exist on the back of a vehicle, I can see zero reason why they would not be able to exist on the turret mounts of your favorite cap ship.
Thinking about it the Endeavor with eight Baristas parked in the hangar could deliver some serious long-range Pew.