Yeah, it helped, but he also held back on an endorsement until she was right there, which is his way. He likes to win.
Seems the win was iffy and not likely prior to the endorsement.