WordPress itself is regularly maintained and updated with new features and security patches. This means that all the websites using the latest WordPress version can be quite modern.
However, some websites on the internet may be using an outdated theme or plugins or a very old version of WordPress, which can lead to a hack.
If you keep your core software, themes, and plugins updated, your WordPress site can be just as modern and secure as one built on a different platform.