Yes probably the alternator. But just check the electrical connector at the top rear of the alternator (held with a spring clip) the connector is restricted by the oil cooler, this can cause the rubber cover to split allowing oil/water ingress which gives intermittent non charging/ battery...