Yes, you can play online poker on your iPhone, as long as you have internet access on your phone and, of course, enough credit or data to stay connected.
There are a number of mobile poker rooms that support iPhone, including Bwin and Switch Poker. A fuller list of iPhone-compatible poker rooms can be found in the related links. Just be sure to play responsibly and check the rules in your region.