Yes, the shaders for Minecraft are completely safe. Just you need to choose a reliable source for downloading shaders for Minecraft. If you are not using a reliable source for downloading shaders there might be some viruses or bugs attached to the shader. There are a lot of secure sources that are providing safe shaders for Minecraft you will have to choose any of them.