If you don't need your ceiling fan light to work and you don want to connect the red wire, you technically don't have to do this. However, you do have to cap off the wire with a wire nut to ensure safety. \
After this, just leave the red wire disconnected. But remember that without it, the ceiling fan light will not work. \