Yes, but it may take some more effort and time than with a manual razor.
And some electric razors aren't designed to get close enough to the skin to pull out the hair, leaving some hair poking out of the follicle even after going over the same area several times.
Look at the description of each shaver carefully to decide which one will give you the closest shave to what you want. Close electric shavers tend to have distinct designs that give you customization options for shave length.