Yes, dehydration can cause spotting during pregnancy. The good news is that once you rehydrate, the spotting should stop.
It’s best to ensure you’re never dehydrated while pregnant by ensuring you always have access to water. Oh, and please, don’t think drinking a pop or lemonade or an obscenely sweet tea is hydrating. It isn’t.