You certainly can "apply"--make an offer--on a house. However, if you have "bad credit" you won't be able to get financing for it.
Check with a mortgage broker or loan officer to determine just what your credit score is. And to determine whether there are any programs that you might qualify for. But if you truly have "bad credit," there won't be any.
You might consider owner financing or a lease-option instead.
Hope that helps.