Anybody can do a long rest anytime or anywhere if out of danger. (The question is how much time passes?) If you long rest after a long rest, does a whole day pass?)