Is it safe for someone with an eye problem to wear nonprescription contact lenses?

Yes but why? I assume you are talking about cosmetic lenses to change the eye color or appearance. These do come in plano which has no correction. But it depends upon your eye problem. If you are being actively treated for an eye problem, best to consult with your treating ophthalmologist to see if wearing any type of contact could be safe.