When you apply for a mortgage, the lender will "pull" (request) your FICO credit score to determine your creditworthiness. In some cases, applying for credit may affect your score.
More about FICO Scores (MyFICO.com)