
Yes. You would not even suffer any permanent damage, if you are rescued after these ten seconds.
The problem with vacuum, like on the moon, is, that water boils already at 0°C. So your saliva will boil and the water in your eyes. And the evaporating water will take heat with it: your body will cool down quickly. But ten seconds are no problem at all, this would be a problem only after minutes.
Even though the process starts instantly: you would feel a tickling on your tongue from the boiling.
And then of course you’ll suffocate. Much faster than you would during a dive: the air is literally sucked out of your lungs. That is no fun. Estimates say you could survive for up to 30 seconds in vacuum. In fact the vacuum on the moon is very similar to the vacuum outside the ISS: no difference for you.
And then there is the lack of thermal insulation. The moon gets very hot in the sun, and very cold in the shade. The rocks might have -280°F or +260°F: in both cases you better don’t touch them. Space suits have excellent insulation, in particular the shoes and gloves. If you are unlucky, ten seconds could leave a very bad burn mark.
You would probably even be conscious for at least 10 seconds on the moon. It would be very bright in the sun your skin, already uncomfortable from the lack of pressure would start to get sunburn rapidly. However all the moisture on your body would be evaporating/boiling off at a very nearly instant rate taking heat with it.
This would be very noticeable for your eyes and your mouth and nose which would dry out fast. It will also be the last thing you will be aware of before you pass out.
That is Leblanc. He worked for NASA. Back in 1965 he was exposed to vacuum for about 30 seconds. He passed out at the 15 second mark. He did not have ANY distress or discomfort. The last thing he recalled was the saliva bubbling off his tongue.
They repressurized the lab and he awoke to concerned technicians but had no lasting harm. His impromptu independent research gave us our best and really only exposed human to vacuum data.
NONE of this will be your problem very long and you will pass out quietly between 15 and 30 seconds after exposure to vacuum. You would be able to breathe but nothing would come in when you inhale and you would exhale all the gasses in your lungs when you exhale.
This depletes your body of all gas and that is headed to your brain and will cause rapid unconsciousness.
The really big thing is that this is all very peaceful and without production or consternation. You don’t explode, you don’t freeze solid, you do not have any respiratory distress. You just keep breathing mostly unaware that something is wrong, a slight tingle, sounds becoming muffled, an odd feeling of saliva bubbling off your tongue, and you pass out.
The exact time for how long it takes to pass out is going to be dependent on how fast your blood is moving and how fast you are exposed to total vacuum. Each heartbeat will pull degassed blood closer to your brain and when your brain gets a full dose of that you will pass out.
All of the massive affects that movie portray are for the camera and not based on fact.