Getting a mortgage for a house can cause your credit score to decline in the short term. But as you pay your mortgage on time, your credit score will bounce back.