ceiling fan with a light
No.

I'd hope to christ they used that ground conductor as the neutral and the two insulated ones as hots, which is probable because you're not dead.

But no.  It's not safe what they did. Undo it, and use the pullchains, or use a wireless controller