Can electronegativity affect the viscosity of liquid?
No, it does not. There is no correlation between the two.
The reason there is no link between electronegativity and viscosity is that water or H2O has an electronegativity of 1.5 and that's a pretty high electronegativity value although water's viscosity is the lowest on the chart.
This proves that electronegativity and viscosity have no link but electronegativity, forces of attraction/electrostatic forces, and inter/intra molecular forces have links and connections to viscosity.