There's a lot more we really need to know before saying if that's safe or not. We can only see a small section in your picture.
The first things I would ask are what it's for, how long/often does it run, and is that wiring rated to be outdoors while unprotected?