Oh no doubt. Putin seriously miscalculated. Russia had spent at least a decade if not more trying to sow divisions in the EU in the US and NATO by playing their Russian troll farm games. And they were successful. They've created massive political division in the US, got Trump elected most likely, and still have several (essentially) Russian operatives in our own political system. Their work was likely behind Brexit as well along with attempts to do the same in France and Germany. And they've even managed to infiltrate a number of NATO countries like Hungary with more authoritarian regimes of their own. I believe they had seen how successful that was and thought that the alliances had been broken. Fortunately he was wrong, and fortunately America had an adult in the room who was willing to rebuild those alliances rather than continue to tear them apart as Trump did.
Had we had another 4 years of Russia being able to keep pulling on those strings who knows what would have happened. I think had Trump been elected Russia likely would not have invaded, but not because they were afraid of Trump, but because he was going to continue to do their work of undermining NATO and America's hard built alliances around the world which would essentially give them what they wanted anyhow.