A non-Muslim can enter a mosque provided he is not intending desecration.
[For more on this topic see the record: 'Are non-Muslims allowed to enter mosques, and if so for which purposes? Can non-Muslim tourists enter mosques to admire the architecture?']