Yes, you can. Iphone miners have been a thing for a while now. There are even mining apps that you can download from the app store to get started. However, mining on an iphone is not going to make you rich overnight. In fact, you’re probably not going to make much money at all.
Mining cryptocurrency is a very resource-intensive process and requires specialized hardware. The iphone just doesn’t have the power to compete with dedicated mining rigs. So, if you’re looking to get into mining, don’t bother with your iphone. You’d be better off buying a used car.