I having reading epilepsy. Can I marry a girl she is second cousin to me. Whether it will inherted to my child

I am having reading epilepsy from my adolescence. I am working as Assistant Professor in Veterinary College. Can I marry a girl she is second cousin to me. Whether it will be inherted to my child or not