Is this an eating disorder?

When I get upset or anxious I will sometimes throw up. It used to happen way more often. Last summer I threw up at least once a day for around a month. Now it only happens every so often. I don’t worry about my weight it’s just like when I get upset I get some relief by throwing up