Hello, I'm a mortgage professional.
Yes, it just depends on how loan ago the bankruptcy was.
If it's beyond two years you may qualify for a construction loan that has one closing for the land, construction loan and end loan. It only requires 3.5% down payment and you don't even need to make payments while the home is being built.
If you have any other questions or would like help with this you are welcome to get in touch with me