People remove the prop shaft (aka front driveshaft) all the time to diagnose vibration problems/t-case problems etc. I've even been told to take it out and go for a drive to see how it feels...
I guess for a prolonged period wouldn't be good but it can be done. The rear driveshaft however shouldn't be removed and driven around.