I mean it definitely is in the way that it is trying to keep Russia out of Europe. The fact that you disagree with a lot of what NATO has done doesn’t negate that.
I’d agree NATO has no business in places like Libya, though Afghanistan was definitely supported by Article 5.