nato wouldn't give a no answer about ukraine joining nato.
if nato just said ukraine can't join nato would russia still attack?
That is hypothetical, so no one can know the answer.
Putin would have demanded some official documents and assurances from NATO as well.
He will not be pleased until he controls Ukraine, its people and its resources.