Being a forgettable episode for me, I had to look it up, and see that the plan was to "revitalize" a star using photon torpedos. 'kay. Overall it just looks like very bad science. The hottest detected stars appear to have an "effective temperature" (photosphere) of ~200,000K and seem to be extremely rare. Ol' SOL is listed at 5772K. Core temperatures are much greater but also largely speculative, at least until an adamantium probe with a subspace connection is invented. Still, 220 million K is trivial compared to the theoretical Planck temperature, so if the star in question could be stabilized to endure a given temperature, then sure, why not? No idea how but, then, neither did the writer of the episode, apparently. Oopsie.