Cardio and gains

Will doing cardio while bulking help with muscle to fat ratio or will it “just burn calories?”