Yes, in Spain it is/was customary that men shake hands, and women give a cheek kiss between them or to a man (the latter, when they are family or friends). Hugging is more unusual, just for special occasions. Pandemics have discouraged personal contact, as you can imagine.
Actually, we pilgrrims...