uhm... im asking if is it safe to update my iphone xr that is still on the software 16 and rn im planning to update it to software 18?
And I'm saying that we have no way of knowing, since we don't have your phone in our possession to be able to check and test it.
If you are asking us to guess......my guess would be "yes"......but, I may be wrong.
After all, if you look around on this site, you can see countless pages of posts from users who are having problems after downloading iOS 18. (Of course, users who are not having problems don't post here.)
Most iOS 18 issues are related to accelerated battery depletion and sluggish on screen operation.
My advice......make an appointment at the Apple Store or take the phone to an authorized Apple service shop to let them check and test the phone. You could have them download and install the new iOS 18 software, so if there are problems........the phone is already at the shop.
Genius Bar Reservation and Apple Support Options - Apple