That's oversimplified and usually how it's taught at the undergrad level. Neurons and especially the networks they form are more analogous to analog electronics, but both analogies end up failing at some point.
I guess my point is that calling neurons analog or digital is not a very good analogy and should probably be avoided.