Yes, resetting your device's DNS is safe. Resetting allows your connection to be cleared of potential errors and removes invalid addresses that have been manipulated or outdated.
Flushing the cache does not negatively impact your device and provides a more positive response than anything else.