It depends on a lot of factors such as: reason for the foreclosure, time elapsed since, re-establishing good credit, and also down payment and income. You're not going to qualify for the greatest terms, but if some time has passed (at least 2 years) and if you've shown the ability to maintain a budget, use credit wisely, and save some money month to month then there is hope. You probably wont be able to do anything right away, however if you take the proper steps to show a lender that you are a good risk and the problems which led to your foreclosure no longer exist then you may have hope.
The answer is ... possibly. We would need the answers to many other questions to accurately answer that.
Feel free to email me at firstname.lastname@example.org, and I can get you in contact with a couple very reputable loan officers that I work with. They would be happy to answer those questions for you.
Thanks and enjoy this gorgeous weather!