Yes, this is what the religion commands to teach. Men and women both need to cover themselves up modestly to preserve themselves from unwanted gazing. It teaches humility as well
Thank you for explaining it well is Muslims appreciate it