yes, you can leave it plugged in when convenient and run it on battery when portability is needed. it will neither overcharge the battery nor cause any other type of damage.
This thread has been closed by the system or the community team.
You may vote for any posts you find helpful, or search the Community for additional answers.
MacBook Air
Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.