Exposing the growth media to UV light is not a good practice as the cell culture media contains various components that may undergo a process called photooxidation, generating reactive oxygen species (ROS) that could turn out to be toxic to the cells. Though UV light has antimicrobial activity, it may not be beneficial to use the UV exposed cell culture media for culturing mammalian cells.
Let me cite some examples. Riboflavin becomes highly reactive upon exposure to UV or visible light in the presence of oxygen, and subsequent degradation processes are varied, dependent upon the conditions such as pH and the presence of other compounds in solution.
The type I photooxidation processes are particularly damaging to some of the amino acids in cell culture media, particularly those with heteroatoms and aromatic groups in the sidechains, most notably methionine, cysteine, tryptophan, and tyrosine. The resultant degradation processes and products will depend on what types of ROS are generated/present in the system, that is, whether it involves type I or type II photooxidation.
You may go through the article attached to find a detailed explanation about the effects of UV on cell culture growth media.
Article Vitamins in cell culture media: Stability and stabilization ...
It is relative and depends on the UV frequency, the type of cells to be cultured, and the purpose.
In general, UV causes ionization and oxidation of the substances in the composition of the medium, and this results in substances that are toxic to cells..
Under certain frequencies of UV, the medium may not be toxic to cells and cells can be cultured in it, but the materials resulting from ionization and oxidation will affect the studies that will be conducted on cells and thus may give wrong results to stimulate the pathways to be studied and so on.