It is possible with most varieties. But as I said before, you would only do this if you are sacrificing yield for growing in a small space. Even if you don't veg, you'll want to make sure the plant is well established before flowering. Maybe at least 2 weeks after sprouting.