Everything depends on a particular situation. If you host a server on your own, there can be some problems with data safety or connection security. However, if you rent a server via a trusted partner, such a server is 100% safe. Hosting providers invest a lot in DDoS protection as well as backup systems. Moreover, they have skilled support teams.