Yeah, it would basically act as a battery except much better energy and power density, and faster 'charging'.
The downside is invariably that round trip energy efficiency (electricity in vs electricity out) is somewhere between 'much worse' and 'terrible'.