Is it possible to purchase the ticket directly on site?

Yes, any remaining availability can be purchased at the Basilica ticket offices.