That's completely fine. Just make sure you're using the original charger provided with the laptop (or an identical replacement) and be careful so that you don't accidentally unplug the device from the outlet during your work.
I am currently preoccupied with both academic and professional priorities so please note that there may be a delay in my responses. Thank you for your understanding.
You can show your appreciation for my post by clicking the blue thumbs up icon.
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".