It depends on the cause. Cardiac arrest itself is not directly inherited — but many of the conditions that cause it can run in families.
If your cardiac arrest was caused by an inherited condition such as Hypertrophic Cardiomyopathy (HCM), Long QT Syndrome, Brugada Syndrome, or Catecholaminergic Polymorphic Ventricular Tachycardia (CPVT), there is a significant chance that first-degree relatives (parents, siblings, and children) may carry the same genetic variant and be at increased risk themselves. In some conditions, the risk to first-degree relatives is as high as 50%.
If your cardiac arrest was caused by coronary artery disease (blocked arteries), there is an increased familial risk of heart disease, though this is due to a combination of genetic and lifestyle factors rather than a single gene.
If no cause was identified (idiopathic ventricular fibrillation), inherited channelopathies are sometimes present without a detectable structural abnormality, and family screening may still be recommended.
Your cardiologist or electrophysiologist should discuss family screening with you following your cardiac arrest. If they have not, ask them directly. The process typically involves first-degree relatives having an ECG, echocardiogram, and in some cases genetic testing.