does it work without the battery holding charge?

you just have to plug it in?