It’s not strictly necessary for you to be present while your roof is being replaced as it’s down primarily along the exterior of your home, but it’s generally recommended so you can oversee the project and address any concerns or questions that arise.
You may prefer not to be there due to the nature of a construction environment where there is loud noise,debris,dust etc.
So really a it’s personal preference.