Yes, pharming can be conducted in controlled environments to minimize the risk of unintended ecological consequences. Additionally, regulatory agencies rigorously evaluate the environmental impact of pharming projects before approval.