Can I buy referbished iphone 5c and use it with tmobile?

Can I buy referbished iphone 5c and use it with tmobile? Will it work perfectly with no glitches or anything?

Refurbished isn't the problem. That'll work. The problem is it better be a former Tmobile phone or an unlocked one so that you can use it with Tmobile. Best luck.