No, brain matter is not hard; it is exceptionally soft.
Brains are surprisingly delicate. According to one source, they are "basically just soft blobs of fat, easily deformed by the touch of a finger." To protect this soft tissue, the brain floats in cerebrospinal fluid inside the skull, preventing direct contact with the bone. This cushioning is vital because of the brain's vulnerable, almost jelly-like consistency.