Yes, VPN is a great tool to protect yourself from being attacked with DDOS. For someone to attack you with DDOS, they will need your IP address. The VPN shows a fake IP address, thus keeping your real IP address unrevealed. So, a VPN can prevent you from being attacked with DDOS.