Of course. A computer and the brain are very much the same. The way a computer works is basically when you hit a key it sends a signal to the into he cpu and it processes it then the cpu then send that information on the screen.
The way the brain works is when your eyes see something or you hear something it sends a signal to your brain and synapses fire off. Then that information is then sent to another part of your brain where you “see” it.
Its the same thing really, with the keyboard being like your eyes/hands and the electrical currents like synapses.
If you want the really nerdy definition then the brain is an organic computer but a highly advanced one by our standards.
After all what is the brain but just a bunch of cells connected together like a circuit in a mainframe?