Is having dyslexia a genetic condition?

Possibly. Learning disabilities can be related to genetic causes. However, this is not an automatic thing.
Could be. Many patients with dyslexia have a parent or relative with it. In medicine, dyslexia refers to the inability to read or recognize graphemes (written marks that we call letters) & is usually acquired. Reversals in spoken or written numbers, letters words are really signs of other neurological problems, such as ad/hd or temporal sequential ordering problems. This latter group is usually genetic.