If i let my home go into foreclosure can i buy another home ?

can i buy a home while im in a home thats going into foreclosure but still modifying my existing home and get a good deal on my new home that i can afford with bad credit and get a good rate?
10 answers 10