That’s exactly what they do in universe. When they’re traveling it’s not the speed that simulates the gravity but the acceleration. They’re only able to do it because of the fusion reactors on most ships.