Can tickets for access to the Dome be purchased on-site?

Yes, tickets can also be purchased at the physical ticket counters located within the premises of St. Peter's Basilica, and they are valid only for the immediate next entry to the Dome.