No, to doze off is to fall asleep, often unintentionally. To get some rest could be falling asleep but it could also just be sitting down for a while.
The teacher was so boring, I must have dozed off during the class.
I ran fifteen miles, worked a full day, and did all my chores when I got home. I can't wait to get some rest tonight!