Cooldown of alliance wars

I am confused , if we start a war season and declare war and suppose one of the members doesn’t attack( even once ) after the beginning of war, If he leaves the alliance and joins another , Will he be able to attack in his new alliance?

I lock this thread since you it’s a duplicate. You can check the other for answers:

Thanks for understanding.