For decoration yes, but to finish the plant cannabis require much more room for its roots and requires much more light, as well as 12 hrs of darkness during its flowering period.
It'd would only get so far before it started dying, probably from "damping off" in the rootzone.