Can a cnc carve the edges of a board?

Iā€™m so glad I asked. That first picture is what I was thinking about as a box joint yes. I guess I need to plan to make the slot and vice setup once I build my work bench as I would definitely like to be able to do joinery like this.

Are there any videos or threads that you know of showing how to set this up?