Yes, CDNs can enhance website security. They mitigate the risk of DDoS attacks by distributing traffic across various servers and can also provide additional security features like Web Application Firewalls (WAFs).