Depends on the particular type, some tubing has a secondary covering (it is usually white, depends on the manufacturer) that incorporates a uv block.
I also have a bunch of pex left over from a radiant floor install I did on my house. The tubing itself would work fine, but I decided against it. The tubing is not rigid enough, so it would make for a sloppy installation at least for exposed work.
Cheers,
Bernhard