Yes. Black roofs absorb heat, whereas white roofs reflect heat. I don't know about in between colours. It's the kind of thing you learn in school about black dull colours absorbing heat, while shiny white things are more likely to reflect heat. Of course, the temperature inside a house will depend on a lot more than just the roof colour: its location, the amount of insulation, the material it's made of, the thickness of the roof, etc.