It's entirely possible to have one anxiety attack (or two) and never have another:
Mayo Clinic on panic attacks
I actually had one almost 20 years ago--without really knowing what it was--but haven't had another. My body, instead, found other ways to respond poorly to stress. Probably worth a talk with your doctor--something like a mindfulness meditation class can be quite helpful. (Cheaper than drugs, no side effects!)