I don't see why it wouldn't work. Those things grow pretty well
I want to grow a few myself, or at least let a few grow in the yard (no spraying for at least 6 months) and then harvest the greens. My cavies all love dandelion greens.
One person's weed is another's valuable, cultivated crop!