The answer to the title question is yes, it is possible for the flow to be irrotational if there are nonzero viscous forces acting on fluid.
As an example, let us consider a simple yet physically meaningful example of such flow: radial, spherically symmetric flow in a viscous incompressible fluid (without gravity). A physical realization for such flow is a bubble of gas expanding into the space filled with viscous fluid.
Assuming that the fluid velocity is purely radial $\mathbf{v}= \hat{\mathbf r}\,v_r(r,t)$, the continuity equation gives us:
$$
\mathbf{v}= \frac{\hat{\mathbf r} f(t)}{r^2}.
$$
This flow is irrotational and Navier–Stokes equation (with viscous term identically zero) could be solved for the pressure.
So, while viscosity does not enter the equations, the viscous stress tensor is nonzero, and there would be energy dissipation within the fluid volume. Consequently, viscosity would enter the solutions either through energy balance equation or through boundary conditions. For example, at the fluid–gas interface of above mentioned spherical bubble we would have (ignoring gas viscosity and surface tension):
$$
- p_\text{gas} = -p_\text{fluid}+2 \mu \frac{\partial v_r}{\partial r}
$$