No, Afterpay doesn't affect your credit score.
Before applying for Afterpay, there is no credit check, and thus it won't have an impact on your credit score.
Because Afterpay does not record its loans to the credit agencies, it will not assist you in developing your credit history