Taking the below excerpt into account, it appears somewhat safe.
“Let's say I want to share that Wi-Fi password with my in-laws. All I need to do is open the share menu and select "Share" to generate a link.
By default, the link expires in seven days, but I can also choose to let it expire after 30 days, 14 days, one day, one hour, or after a single person views it. I can also choose to let anyone who has the link view the item, or I can restrict sharing to only the people whose email addresses I enter.”