Who joined NATO that you're blaming the Libya military interventions on?
If your inference is true then Ukraine's membership would be entirely orthogonal to any intervention NATO took to prevent Putin from committing genocide against his own people.
If NATO would come to Ukraine's aid anyway, then again their membership doesn't matter.
I mean, that's objectively not true since Libya, who attacked no one, but had a NATO bombing campaign to assist their civil war.
NATO is no longer a purely defensive pact.