Use Photon as a Wifi Module for RasPi

Hey,
is it possible to connect a Raspberry Pi over the Rx/Tx Pins (serial) and use the Photon as a Wifi Module (SLIP/PPP) without modifying the firmware?