It... should be OK to not unplug it, but TBH I don't actually know for certain & I suspect it may depend on what controller & charger you've got, thus the discrepancy in answers *shrug* Regardless - I unplug the main power supply from the motor whenever I park the bike anyway, the reason is as follows;
Ebike still fairly new, I rode to work & parked it in the corner as is my norm, unplugging the main power lead. As I stepped away from the bike a coworker asked "New bike huh? & reached over to poke a few buttons & flick the throttle... and then asked "So why do you unplug it, does it drain out?"
I promptly replied "No. I unplug it because of folks like you, you did after all just hit the throttle yakno."
He got POed about that... there's no figuring some people lol