You must wash your hair before you wash your body
We usually wash both our hair and body when showering
Sometimes people wash only their body when showering
It is okay to first wash your body before washing your hair