No. PEX will become brittle if exposed to sunlight for too long. The typical exposure limit is about 30 days. PEX also is not rated by manufacturers for exterior exposure. PEX piping should generally be shielded from any kind of UV exposure.