They use fake end to end encryption, meaning your messages cannot be intercepted and read, but Apple can decrypt it if law enforcement demands, or if someone at Apple falls for a fake warrant (this already happened).
So it is not as safe as can be, but it is relatively safe, and the risk might be worth the convenience, unless your job or identify makes you a special target for hackers.