May I pay for my own housing on assignment and receive a housing allowance?

In many cases, yes. Talk to your recruiter about this to learn if this option is available for the assignment you are considering.