Yes, you can charge the aventon pace 500 battery while it is still attached to the bike. The battery can be charged either on or off the bike, depending on your convenience. However, make sure to disconnect the battery from the charger once it is fully charged to avoid overcharging and prolong the battery's lifespan.