NO.
Ukraine was NEUTRAL and NON-ALIGNED when russia invaded in 2014.
Putin's "NATO expansion" excuse is a barefaced LIE, and it's time more people called it out.
"From 2010 to 2014, Ukraine pursued a non-alignment policy, which it terminated in response to Russia’s aggression. In June 2017, the Ukrainian Parliament adopted legislation reinstating membership in NATO as a strategic foreign and security policy objective. In 2019, a corresponding amendment to Ukraine's Constitution entered into force." (https://www.nato.int/en/what-we-do/partnerships-and-cooperat...)
2014 yeah, only under Yanukovych who was on Russia's side. 2005-2010, Yushchenko publicly stated that he wanted Ukraine to join NATO and was taking steps towards it, while both Bush and Obama supported expanding NATO to Ukraine.
"I welcome the decision by President Viktor Yushchenko, Prime Minister Yulia Tymoshenko, and Parliament Chairman Arseny Yatsenyuk to declare Ukraine's readiness to advance a Membership Action Plan (MAP) with NATO" -Obama
Before 2005, there were already smaller steps taken, including granting NATO military access. 2005 was a disputed election with both Russia and US involved.