But what if the condom split?

Condom use. A damaged condom should be replaced and emergency contraception can be considered.
When condom breaks. When the condom breaks intercourse is stopped and a new condom is put on the erect penis. If ejaculation has occurred then emergency contraception should be considered.