Can you get pregnant whilst using a condom?

Can you get pregnant if you used a condom and it didn’t split or have a hole in it?