If you buy a foreclosed home through an agent, and not at an auction, you still have the opportunity to use an FHA loan so long as you are a first-time buyer and have a credit score of 500 or better. Otherwise, you will want to improve your credit score before you try to acquire a loan through a lender.