Sometimes, yes. When you drive, your car battery is kept recharged, either by an alternator on modern cars or by a dynamo on earlier cars. So if it’s been flat and you’ve managed to jump-start it, driving it will actually recharge the battery.