No. No it wasn’t. Antifaschistische Aktion was a paramilitary wing of the communists, fighting both the social democratic Iron Front and the Nazi Sturmabteilung.
The only way in which it could be said to be allied with the Nazis is that both of them opposed the social democrats, but the enemy of your enemy is not in fact your friend. The KPD saw both the SPD and the NSDAP as fascists, rather than in any way allying with the NSDAP against the SPD.