A capacitor will only stop your lights from dimming while your battery dies. Get a new alternator if you're having substantial voltage drops, and also consider upgrading the "Big 3", which are the wires connecting the alternator to battery+, battery- to chassis, and chassis to engine block.