I assume most people sleep with their eyes closed, yes. Just like "having your eyes closed in a sleeping bag on the ground" counts as "sleeping under the stars" even if you don't actively look at the stars while sleeping, I guess the same goes for "VR sleeping".
I guess it matters too what the first/last thing you see when waking up/falling asleep. But again, never done this, can't say for sure.