Yes. A PSP running custom firmware can play ad hoc with a friend nearby — it works fine on 6.60 PRO B9, which is the version I have tested it on.
Both handhelds need to be on the same firmware and within range of each other, just like on an unmodded unit.