Pre-cum???? SOS PLZ

Can someone please explain to me what this is and how it can have an effect in non protected sex ? I recently did it with my bf and he pulled out but what is pre-cum? Could he have maybe still came but just not known???? SOS SERIOUSLY NEED ADVICE