Do you think it's safe to use the e-commerce and website builder for our main company website?

Currently we use a separate server for our website. It seems like odoo would make it easier to run everything from odoo.

What are the security concerns about that. If we get hacked, then there is access to everything. If the website is on a different server, then even if it's hacked, only website content will suffer. How do you secure your odoo instance from attacks?