I would have a number of concerns with that setup.
1. size. would it be long enough.
2. weight. How much weight could you put on it. (I'm a big guy so always a concern.)
3. Why? What is wrong with just pitching a tent?
4. as someone already mentioned, hope you don't sleep walk or make midnight washroom trips.