Yes, Pennsylvania law allows you to drive directly to an inspection station with an expired inspection sticker only if:
You must carry proof of appointment (confirmation text/email, phone number of station). Drive the most direct route; no detours for errands. If stopped, show appointment proof. This grace does not apply to registration or insurance — those must be current.