This enzyme is involved in the de novo synthesis of CTP, a precursor of DNA, RNA and phospholipids. Catalyzes the ATP-dependent amination of UTP to CTP with either L-glutamine or ammonia as a source of nitrogen. This enzyme and its product, CTP, play a crucial role in the proliferation of activated lymphocytes and therefore in immunity.