Endure protect you from fainting until the end of the turn
so if you use endure then explosion you will faint.
However endure will protect you from OHKO moves.
edit: I forgot to mention that you can still faint from weather effects or status hazard even if you endure the hit.