You can add any blocks that are currently shown on the canvas (including the wires between the blocks) to a group.
It is not possible to create an empty group. You first have to add a group as described below. Once the group exists, you can add more blocks to the group, either from the palette or from the canvas, as described in
Adding a block and
Moving blocks into a group.
Or press Ctrl+G.