Quite the opposite. Ukraine has been prevented from joining NATO by the west, especially Germany and France, for fear of angering Russia. This course of action has led to war. The proper course of action in hindsight would have been to have Ukraine join NATO asap back then.