Yep, in fact it was Bran controlling things behind the scenes nearly the entire story. Some think he even worged control of Drogoth and made him burn King's Landing to the ground and Dany couldn't stop it (which I agree -- note the importance of the dragon flying over Kings Landing scene in Bran's dreams long before, which they show again right before Dany changes course and burns the city instead of heading straight to the Red Keep) -- so Dany really had no choice but to become a tyrant (a role she then took on quite eagerly), leading to Jon Snow killing her.
At the end after Jon says sorry, Bran replies, "You were exactly where you were supposed to be." (meaning he arranged things so Jon would be there, same as he did with Therion.). Bran wanted to be King because he knew he couldn't have kids and then the whole hereditary system would be replaced by one (somewhat) more egalitarian.