Except that the Enterprises mass would be nearly infinite so Scotty would need an infinite number of Dilithium Crystals to power it whereas he usually struggles to find 3 or 4.
AI Overview
The Highest Warp Factor In Star Trek Explained
The original USS Enterprise traveled at a standard maximum cruising speed of warp 6 but had a "never exceed" speed of warp 8. Using the cubic warp scale common at the time, warp 8 was equivalent to 512 times the speed of light. While the ship was occasionally pushed to faster speeds, doing so risked damaging the ship.
Warp Speed Basics
Warp Factor 1: The speed of light.
Cubic Warp Scale: Warp factor "n" was equal to "n³" times the speed of light.
Maximum Cruise: Warp 6 was considered the safe, standard maximum cruising speed for the Constitution-class starship, representing 216 times the speed of light.
Maximum Speed: The absolute maximum safe speed was warp 8, equivalent to 512 times the speed of light.
Pushing the Limits: The Enterprise's warp engines could be pushed beyond warp 8 for short periods, but this was risky and would cause stress and potential damage to the ship's systems, as noted by the engineering crew.