is it risky to finish inside even with condom on ?

I’ve heard most people pull out even with a condom on but my boyfriend never does.