Yes, it is safe to share your public SSH key with others. Public keys, usually stored as id_rsa.pub, are used for logging in to other servers. You can log into their servers if someone else adds your public SSH keys to their server.
Caution: Don't confuse private SSH keys with public SSH keys. Unlike public SSH keys, private SSH keys must be kept safe and secure.