Machine embroidery should be done before sandwiching, or as an attached label. An attached label can be added either before or after quilting.
Hand embroidery can be done either before or after quilting. If adding after quilting I would be careful to get the back of the stitches into the middle of the sandwich.