Do you need good credit to buy a house?

I am 21 yrs old. Make a pretty good annual income. I have not so good credit. Looking to buy a house in the next year or so. Do I have to have good credit to buy a house? Or do it depend on the agency I go through?
8 answers 8