NO. You have to look at where we are in the story, the dead have all but overrun the castle, a big force including most white walkers made it safely to the godswood. Aside from Theon there is nobody to be seen, most significantly, Jon and Daenarys are not there, just Theon and Bran, of which only Theon is a fighter. This certainly looks like an all hope is lost situation.
So taking a step back, the plan was to lure the Night King to the godswood and throw their strongest warriors at him, this was made clear in episode 2, assuming (correctly) that killing the Night King would end the war. At this point the only thing that Theon can try to accomplish is to kill him, even though it's extremely unlikely he'll succeed. So his last charge is desperate but not unnecessary, if by some chance he'd succeeded they would have been victorious.
Then to come to Bran's 'future seeing', it is a widely-spread believe he can see the future exactly, this is nonsense, just a few things to prove it:
- If he'd known he would have told them "Hey, don't let your Dothraki charge ahead, they'll get slaughtered". Which is one of the main reasons Dany isn't at the godswood. Or he could have told them Dany wouldn't see the signal to lit the trenches, or told them about many other tactical mistakes.
- In Season 7 he seems genuinely surprised that Arya is in Winterfell and not in King's Landing, even after saying he saw her at the crossroads.
From what is shown, Bran reminds more of Laplace's Demon, a philosophical construct that says if a demon (intellect) knows the exact state of everything in the past and the present, and has enough intellect to process that data, it can predict the future. Bran does not have all past and present knowledge, but he has access to all knowledge and has learned a lot, I also doubt he has a near-infinite intellect. So what is most likely is that any future 'visions' he has are very good guesses, but not anything near really seeing the future.
So no, with the information we have now, it does not seem he knew Arya would kill the Night King just moments later, so this doesn't change a thing to Theon's charge.