In the episode "Best of Both Worlds" it's suggested to route power directly from the core to the deflector dish and use it as a weapon against the Borg. The gag is that instead of using the internal systems to channel power, they just strap the core's output to the dish.
Edit: also, apparently an anime reference as pointed out by @Shipgirlboy@sh.itjust.works
This is similar to the so called 'Holdo maneuver' from Star Wars: The Last Jedi .... where they take a rebel ship on a suicide mission of deliberating flying it into a large Imperial ship.
If spaceships can become very powerful sources of energy and exotic engines that can deliver and sustain massive amounts of energy .... eventually someone is going to want to turn it into a weapon.
If you can use the energy of a fancy star ship to propel a craft through space at very high speed, they can use the same technology to use it as a delivery system for a weapon ... or just use the energy created as a weapon itself .... or in the case of the Star Wars thing I mentioned above ... just use the entire ship as a weapon .... as Worf would have put it 'IT IS A GOOD DAY TO DIE!!!'