For the solar panels on the Ingenuity helicopter, it's my understanding that the flights do already help keep them clean.
Ingenuity is highly experimental, but even for a future Mars helicopter I doubt they would risk flying it in close proximity to the rover.