I think it can survive 3 Confusions (Dead on 4th) so yes because its lost HP will give it additional energy,
https://www.youtube.com/watch?v=ufM8raJbO2Q
Cut to about 2:02 the Trainer uses a Gengar with the same CP as yours and manages to get off 2 Shadow Balls. Though this may be because Alakazam used its Charged Move on Gengar's last leg, it also started more slowly because it was brought in after a lag.