I am not sure I understand your question well. To my knowledge, alkaline phosphatase is used to clean up PCR product by removing excess dNTPs (although I never used alkaline phosphatase for this purpose). So, I assume this step is done after PCR reaction.