Just make sure you're properly buckled in for your safety. Conversely, sleeping in an RV bed while someone is driving is not allowed. Even if you live in a state where all passengers aren't required to wear a seatbelt, it isn't safe.