No, you can’t do this for safety reasons. You can use this program to monitor the motor temperatures. If they are hot before a match, you can use compressed air to cool them down.
int leftFrontT = leftFront.temperature(temperatureUnits::celsius);
Brain.Screen.print("Front Left: ");
Brain.Screen.print(leftFrontT);