Typically, buying stocks on margin won’t affect your credit score. However, your score could be affected when you initially open a margin account.