YES! You can not be disqualified for a loan if you've ever had a foreclosure, however, you must wait 2-3 years AFTER the foreclosure date to apply.
Below is the link to a blog post I made about this issue. You're not the only person who is uncertain about how to be pre-approved for a home loan. Please read it and let me know if you have any questions. http://www.trulia.com/blog/isiah_youngblood/2012/04/getting_approved_for_an_fha_loan_with_bad_credit
If you're not already working with a Realtor, I am in Birmingham, AL and would be happy to work with you and further assist you with any real estate needs or questions you have!
Isiah Youngblood, Realtor
cell - 205.994.4592
RealtySouth -Trussville, AL