Despite the fact that caffeine is a mild diuretic, you don't lose more fluid than you take in by drinking coffee, so it cannot dehydrate you.