'15 charger alternator issue

Could a wire be loose . The squealing was the belt slipping because it was charging instead of maintaining the battery. My truck did the same thing . It was one of the smaller wires on the battery cables because the nut was left loose after I had it off. I used my battery in another car and just twisted the battery cable on and never tightened the nut which left a wire loose.