Never mind 'not allowed by law'....how about unprofessional, foolish, dangerous?
I'm frankly stunned at the naivete of the OPs suggestion. An aircraft is not your living room, no matter how much the airlines try to make it that "comfy" in the back for those of us just along for the ride.
I am also not a pilot, but know enough to realize it's often much busier up front than we might think.
Lastly, I'll take an extra night ANYWHERE, even at MY cost, ANYTIME, rather than a fatigued crew. My life is in their hands, literally.