Well, yes and no.
VLAN brings added security to the network. As it separates devices into multiple virtual networks, it’s easier and quicker to prevent a compromised computer from infecting the entire network.
Nevertheless, VLAN has some unique security risks, the most important one is VLAN hopping.