Hi, I am Tech Michael.
The answer to that question is Yes. It will work just fine provided you are using the correct power cord that came with the computer;-)
Please rate kindly so I can close this for us.
Thank you and have a great night.
It will realize there is no battery and simply power the computer ;-)