Yes. As long as you are respectful and not wearing shorts and sleeveless clothing you can enter the Basilica.