Barely. Against a horrible opponent. I think if Hillary hadn't bought off the DNC and the nomination had gone to Bernie, the General results would have been different.
Coulda, shoulda, woulda.
Had we repeated a conventional Bush I, Dole, McCain, Romney type it is unlikely the GOP would have prevailed.
I suggest to all here gathered wishing for a successful GOP candidate in the future, to try to learn about things which have worked. (Having an open mind doesn't cost anything)
Bush I, Dole, McCain, Romney and the primary campaign of the 15 primary losers, did NOT work.