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.
NOTE: Warning: Mining Ethereum on an iPhone is not recommended and may be dangerous to your phone’s performance. The iPhone does not have the processing power or suitable hardware for efficient mining of Ethereum and may lead to overheating which can damage or even totally ruin the device. It is strongly advised that you do not attempt to mine Ethereum on an iPhone.
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.