does your phone get ruined if you use it while it is charging
No, not necessarily, but it can cause a minor issue. iPhones use a Lithium-Ion battery for its power, using while it's charging won't necessarily ruin the battery, but if you're using the phone while the battery is in the charging process, it can cause the phone to think it has more power than it actually has.