No, the vanished people were completely unaware of what happened to them or the world in the last five years. For them, it felt like they blinked and woke up in a different time. The MCU gives us several examples of how disorienting and traumatic this experience was for the people who returned.
One example is Yelena Belova, whose point of view we see in Hawkeye season 1, episode 5. She was in a bathroom when she suddenly turned to dust and then returned from being dust, seemingly in an instant. She had no idea that she had been gone for five years, and that her sister Natasha had sacrificed herself to undo Thanos’ snap.
Relevant dialogue:
Yelena: Ana, I was in there for five seconds, I come out and I've lost five years of my life. Please.
Another example is Monica Rambeau, who we see in WandaVision season 1, episode 4. She was at the hospital with her mother, Maria, who had just survived a procedure for cancer treatment. Monica fell asleep in her mother’s room, and when she woke up, she was surrounded by chaos and confusion. She learned that she had been missing for five years, and that her mother had died three years ago from a cancer relapse.
Relevant dialogue:
Dr. Highland: Monica?
Monica: Oh, Dr. Highland, thank God!
Dr. Highland: I can't believe it.
Monica: (STUTTERS) Uh, I was...
Dr. Highland: Where did you go?
Monica: Well, in her room since she came back from the surgery. I mean, I might've have fallen asleep, but no longer than 20 minutes. Dr. Highland, where's my mom?
Dr. Highland: Your mom, she died, honey.
Monica: What? No. No, no, no, no, you're mistaken. My mother... The procedure went well. You said so yourself. Clean margins. You're discharging her today.
Dr. Highland: The cancer came back.
Monica: Okay, stop, stop. No, you're... My mom is Maria Rambeau. Look it up. I mean... Look it up. "Maria Rambeau."
Dr. Highland: Monica, I don't understand what's happening, but you need to listen to me. Maria died three years ago.
Monica: Three? No. No. No, no...
Dr. Highland: Which was two years after you...
Monica: After I what? After I what?
Dr. Highland: After you disappeared.
This scene clearly shows how confused and shocked Monica was by the fact that she had missed five years of her life and that her mother was gone.