No, it is not safe to use a non-stick pan if there is mold on the inside. Mold can release spores and potentially contaminate the food you cook in the pan. Ingesting mold or its spores can be harmful to your health and may cause respiratory issues, allergic reactions, or other adverse effects. It's important to maintain proper hygiene and cleanliness in your kitchen, including regularly cleaning and inspecting your cookware to prevent the growth of mold or any other contaminants. If you find mold in your non-stick pan, it's best to discard it and replace it with a new one to ensure food safety.