I usually have mine off and never actually printed from my iPhone, but if it’s just CUPS as a standard I don’t see why not. Theres tons of old tutorials for getting it running with a router. http://tomatousb.org/forum/t-573238/airprint-google-cloud-pr... so to me it’s a solved issue.
I’m using an Ubuntu VM as a CUPS/smb print server to print to my 2006 HP3600n; I just tried it from my iPhone - worked fine. I see no reason to think it wouldn’t from a Pi.
(I wasn’t even trying to get AirPrint to work; it just worked out of the box and today’s the first day I ever tried it.)
It might be your router blocking wifi-to-wifi lan connectivity, check your settings. My Brother wifi label printer works great with airprint from my iPhone.