I removed a ceiling fan to replace a switch but did not note the wires. Now I want to replace the fan but find it has Blue, Black and White wires, whereas the wires coming from the ceiling are only White and Black. It also has a green wire attached to the casing.

Does the blue and black wire go together?

Thanks,

Mcsteph