There is no harm in it.

Sahih Muslim Book 15 Hadith 368

Sahih Muslim #1307

The Book of Pilgrimage 15:368

Ibn Abbas (Allah be pleased with them) reported that it was said to Allah's Apostle (ﷺ) about sacrificing of animals, shaving of one's head, throwing of pebbles, and (the order of) precedence and succession, and he said:

There is no harm in it.

Chapter: It is permissible to offer the sacrifice before stoning the Jamrah, or to shave before offering the sacrifice or stoning the Jamrah, or to perform Tawaf before any of them

Grade: Sahih