Are rocks made of grains?

some rocks are, but those are a specific kind of rock. (a sedimentary rock is made of grains and or sediment, others are from hardened lava and pressure underground)