Do all the corals produce reefs?

No.

Reef-building corals are called stony corals; the others are known as soft corals.