Pressure washing can certainly damage a roof if done incorrectly. Always check with the pressure washer manufacturer about what kinds of materials it’s suitable for. For instance, many aren’t compatible with tiles.
On the other hand, always use a wide spray nozzle and a low PSI to ensure the integrity of your roof.