Probably. There are two issues to consider.
First, lenders like to see two years of good credit after a bankruptcy is resolved. However, there are instances where lenders will finance a home buyer who has a year of good credit.
Second, lenders want to know why you have gone bankrupt. There is a substantial difference between a bankruptcy that is caused by reckless financial habits and simple financial disasters (a car wreck, medical costs, the plant closed after 30 years, the town was underwater for three weeks, etc.). In other words, not every bankruptcy is a by-product of financial negligence.