I am sure you can get a loan , It could take some time and may have to go through credit restoration
but the positive out ways the negative ,
Find good lender who will help you get through the loan process .
also find a good real Estate agent to help you find the home of your dreams.
Good Luck and God Bless