Is dystonia a genetic disorder?  

Not always. Not always. While there are hereditary forms, it can also be caused by trauma, infections and more commonly, by some medications.
Sometimes. Dystonia is a disorder that can be caused by genetics, but it can also be due to trauma, infection, poisoning, drugs, etc. There are many different types of dystonias and even more causes of dystonia.