Both getting a second mortgage and refinancing can potentially have an impact on your credit score. When you apply for a new loan, whether it's a second mortgage or a refinance, the lender will typically perform a hard inquiry on your credit, which can cause a slight temporary decrease in your credit score. However, as long as you make timely payments on the new loan, it can also have a positive effect on your credit score over time.