Can not washing your hair enough cause dandruff?

I never had an issue with dandruff but lately I have. I haven't been washing my hair as much. Could this cause it? I typically have pretty dry hair but not dry skin.