Yes, that looks good. That's a brute force approach. Works OK for smaller trials, but what if it were the probability of 8 consecutive heads in 20 tosses?.
You could show off and use a Markov chain.
The entry in the upper right hand corner tells us the probability of getting 3 conscutive heads by the time we throw 5 times. See?. It matches yours.
I hope I set that up right.