Yes and no. Dementia can affect both gray matter (non-myelinated neurons) and white matter (myelinated neurons). Many different disease processes affect both gray and white matter that do not result in a formal diagnosis of dementia.