Thanks in advance!
Certainly it can in the extreme.
If relative humidity exceeds 100% then you will be getting condensation in the form of fog or rain which will reduce visibility.
It would not surprise me if there is an effect at lower RH, but I don't know for sure.
Relationship between Visibility and Relative Humidity, PM in terms of Hygroscopicity
Analysis of extinction properties as a function of relative humidity using a K-EC-Mie model in Nanjing
Separate names with a comma.