Can you get a mortgage? Probably not. Lenders primarily look at 3 things in approving you for a mortgage - Income, credit, and down payment.
You need to have sufficient and stable income to afford the payment. Your credit scores reflect your willingness to make payments, which is important to lenders. And the down payment forces you to have some skin in the game.
You don't need to have perfect credit, but bad credit will almost certainly mean a denial.
Your best bet is to focus on establishing good credit and saving some money before deciding to purchase a home. Owning a home is a privilege not a right, and lenders want to enforce the belief of "sustained homeownership" meaning setting you up for success in owning a home.
Best of luck!
A bank looks for atleast a score of 620 and even then it may be tough. Best bet would be to find a rent to own but be very careful with that type of deal and get advice from a professional.
Ultimately take the steps to fix your credit so down the line you will be all set.