Sure, if the prospective landlord accepts you. Many do not even do a credit check; if there is a place you really really want, fill out the application and if the bankruptcy is recent, be honest and explain circumstances that prevented you from going on without bankruptcy; for example, a couple wrote on their application that one of their kids died after a heart transplant and the medical bills after insurance paid their part was still over $900,000.00; there was no way to pay it, and their idea of a really good, generous "payment plan" was $2200 a month; they would not go lower on payment plans, so it all ended up on my credit report and that's why my report sucks.
If the bankruptcy was years ago, don't even mention it. Chances are they won't check it anyway, and its worth a shot.
In fact, even if your bankruptcy is recent, you could just leave it out and take the chance that they won't check it. Believe me, many don't check it, they figure just mentioning that they will do a credit check is enough to scare away anyone with bad credit.
Hey, you need somewhere to live; sometimes in life you gotta do what ya gotta go. Its that simple.