Possible to create a DMZ using an attached managed switch with its own VLAN?

I had understood from this post that an entire VLAN could be designated as a DMZ. Though this solution may be overkill for the issue I'm trying to solve.