pill prevention

Does being on the pill prevent pregnancy from pre cum? He always pulls out but I'm nervous about the pre cum some advice please!