Do you need an air gap for the dishwasher if connecting to a garbage disposal?

No, you don't.