I wonder if dementia is genetic

Why? My mom's side has had a history of passing down dementia.