Of course, it is. You can reset your DNS and IP by flushing your DNS cache, or in a more dramatic change by switching to a different DNS server. In either case, as long as you enter the correct details and be careful, it’ll be totally safe and harmless.