However, I don't think that's what most people mean when they say "mind", and using the word "mind" brings with it a lot of baggage, so I'd prefer to use a more descriptive term, like "sequence of events".
The sequence of events in the brain are what make up the mind. But, if you replace the brain while keeping the sequence of events continuous, you have a new brain and the same mind.
Or maybe just the same brain. Ship of Theseus and all that.
Okay, but as far as I know, we've never replaced a brain while keeping the sequence of events continuous--I'm not even sure what actions one would take to do that.
But the fact that we can't currently do so doesn't mean that it isn't relevant to the philosophical discussion of whether the mind is a separate entity from the brain.
It seems likely to me, though, that we'll be able to really make progress on that question in the next century or so for this very reason.
... in roughly the same way that a process is not a processor. Or a program, for that matter.