Sometimes nightmares occur as a reaction to real life stress, yes. The specific content of the dream doesn't matter so much as the feeling of it. Stressful dreams, nervous dreams, that sort of thing.
There are a couple things you can do. Tackling the anxiety probably the most important to start with. I don't know your history; if you haven't seen a doctor about your anxiety you should consider it. Maybe give meds a try. Or therapy.
In theory, if you can manage to reduce your anxiety, the dreams should stop. If they don't there's also meds for that too. Amitriptyline, Trazodone.