1) If your bankruptcy has been discharged
2) Your credit score is high enough
3) You do not have any additional judgements/charge offs/etc.
You should contact a local lender, and let them run your credit through the 3 credit reporting agencies to give you the green light on purchasing and to give you the price point you are able to purchase.
Did you file Bk7 or Bk13. If Bk13, you can get a mortgage, if Bk7 it depends upon why you filed bankruptcy.
In either case you need to have good credit, enough of a down payment and income to qualify. Speak to a mortgage officer to get your options.