Yes, there are dialects.
Written German is "Hochdeutsch" which is spoken particularly in the north of Germany. Then there are dialects within Germany itself which you can most commonly find in German states such as Saxony and Bavaria. The same goes for Switzerland and Austria. I speak "Hochdeutsch" and I can understand most of what people say who speak in dialects but it's difficult from time to time for me as well.