I think you may want to check with local building codes, see if there's anything about clearance to the back wall. If you're building out of brick, maybe you would be OK, but with a wooden structure it may not be such a good idea.