Wire color standards for ceiling fan and lights, power from the switch in the USA
There is not an end all standard for wire colors, especially with all the DIYers running around.
If the fan will be controlled by the pull chain, it would be likely to have the black feed pigtailed to the switch and to the black going to the fan box to control the fan motor. Then the red would go from the switch to the fan box as a switched hot to control the light. The white wires would be wire nutted together in the switch box and the white wire at the fan box would be connected to the white wire from the fan. If there were double switches to control the fan and the light separately, then the black wire would be pigtailed to both switches and the black and red would be connected each to a switch. Then at the fan box either black or red could be connected to the motor and light of the fan.