Yes. If you pay your debts on time in the future, you should be able to re-establish good credit in as little as 2 years. I have many clients that can get their credit score into the mid-600's after one year, and into the 700's after 2 years.
But you must "keep your nose clean" and not default on any future debts. And if you have defaulted debts that remain on your credit after bankruptcy, such as defaulted student loans or child support that was not discharged, you must get those out of default if you expect to get your good credit back.
My law office will do a "credit clean-up" or request for reinvestigation after your discharge, to make sure that your credit is as good as it can be. After that, it is up to you. I recommend that you go to www.annualcreditreport.com and order your free credit reports, once per year and dispute any inaccurate information.