Geriatric Primary Care Rotation

My grandmother has a mental illness. I have the same genes as her. Will I also get the same mental illness?