Short answer is yes.
Default values will disable
- root access from remote machines
- remove anonymous users
- drop the test database (which can be accessed by anonymous users).
However the word "safe" doesn't mean that your system will be safe. Especially if remote access is allowed, you should consider to use a strong user authentication (e.g ed25519) and to secure your connection via TLS/SSL (require SSL in grant command)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…