Yes, the milky white sap (latex) is a skin and eye irritant for many people and is toxic if ingested. Always wear gloves and eye protection when handling or pruning, and avoid contact with skin. Wash hands thoroughly after gardening.
When and how should it be pruned?
Prune after the flower heads have faded and dried, typically in late spring or early summer. Cut the spent flowering stems back to the base to encourage fresh new growth from the crown. Avoid cutting into old, woody parts.