How long to prove Bona Fide marriage?

Desperate times calls for desperate measures..

Can I ask a friend to marry me and for join bank accounts/ prove we live together, etc and immediately apply?