UV sterilizer is no harm. If you have one, put it on. It needs a very slow rate to work properly so you may want it separate from your filter. But it will help with other possible types of algae and floating bacteria depending on the size of the UV.
However, the diatoms should clear over time. They are never permanent resident once the tank stabilizes and there are no other issues causing it, like the ones I mentioned.