Yes, in two ways:
- By buying on a subsidized contract, you've effectively used a loan for an iPhone. It's not different just because the phone company issued the loan.
- By using a loan for something else (e.g. tuition, automotive, housing), and then buying an iPhone instead of paying down the loan