As I told you earlier, WordPress is an open source platform. Big companies and developers help to build it. From the security point of view, the code of Wordpress is absolutely safe. To avoid hackers, you have to get your hosting server from a good company, as well as always use the right themes and plugins.