You can definitely do something in that closet, it's a bit narrow, but if you are willing to give up the whole space, then you could certainly start a grow in there.
As far as growing out of a cardboard box, that's what I have now in my closet. My closet is a walk-in with a lot more room than...