I hope it's ok to post this here, but I suggest that you go to creditboards.com to answer your questions. They are very very helpful over there.
The short answer to your question is 'yes' you can definitely put yourself in a good position to purchase a home in 3-4 years IF you start actively repairing/rebuilding your credit soon. Good Luck!