We always recommend the use of a helmet. However, this depends on the specific ebike class you are riding (I, II, or III), your age, and your state.
For more information, visit this page and click on your state.