Can I use a pay as you go phone card on an I phone 5s?

A friend is giving me her old I phone 5s. All I need the phone for is to text on.
Welcome to iMore

It depends if the phone is locked to a carrier, or if that carrier offers Pay-As-You-Go. If that doesn't answer your question, we'll need a lot more information from you about the phone and the previous carrier.

Original thread: https://forums.imore.com/threads/can-i-use-a-pay-as-you-go-phone-card-on-an-i-phone-5s.357654/