In conservation of energy, for example throwing a ball up and catching it, how does air resistance (non free fall) impact the conservation of energy? Is it because energy is lost due to work done on the air?

(may be broke/outdated!)
In conservation of energy, for example throwing a ball up and catching it, how does air resistance (non free fall) impact the conservation of energy? Is it because energy is lost due to work done on the air?