Better bring along a battery booster or at least jumper cables with you. If the connection to the battery is coming loose while driving it means your alternator can't recharge the battery. Maybe not right away, but sooner or later you're going to have a dead battery from cranking without recharging (happened to me on my last vehicle).