It is absolutely alright to charge a Lithium ion battery overnight (or all day and all night). In fact they last longer when they remain charged 40% and above most of the time. There's no way you can overcharge your device 😉
P.S.: It is also advised to keep your Macbooks connected to chargers when you use them and don't need to be mobile.