Will this affect my credit score?

No, if you choose to pay in installments through Shop Pay, there will be no impact to your credit score. Affirm will not report to credit bureaus when you apply for Shop Pay Installments, but your credit score can change if you don't make your payments on time.