Is it possible to have sex and not get pregnant

Is it possible for a guy to cum inside you every time you have sex and not get pregnant at all ?