Orphaned packages & optionally required packages

I’ve checked the man page from pacman. Are you talking about this --asexplicit Upgrade option? Would that mean I have to execute

sudo pacman -S --asexplicit gdm