When a player produces a unit through an ability outside of the tactical action, that ability will state how many units that player can produce and where that player can place those units.
a. A player cannot produce a unit on a planet they do not control. b. If an ability allows a player to produce a unit in a system, they may produce that unit in the space area or on a planet they control in that system.
LRR v2.0 (base game / Prophecy of Kings); specific card abilities may override the general rule.