My wife takes her bike to her campus when its warm outside and its about a 6 mile ride. Where I'm from its legal to use your motor anywhere a regular mountain bike can be. So yes she drives it on campus to her class. You really should consider using a lock because some people steal.
We personally went out and made our own lock. Just ask around and you will find someone with a lot of chain. Also locks are cheap. So, Taylor sowed up a cloth guard around our donated chain to protect paint and we used an old lock to complete our free motorbike security system.
But, tbh we have never used it here in Maine. I work on a heavily armed secure military base and Tay works one on one with people at private homes with cameras and garages.