It will affect the handling characteristics of your bike and aerodynamics. But more important is its role in your weight distribution over the bike.
A narrow bar may sound aero. But your neutral position will often spread your arms and make you less aero. A wide bar may sound comfortable, but your wrists will eventually fall inwards putting strain in your arms, shoulders and neck.
A handlebar that fits your size will simply save your energy!