umm idk am i safe or nah?

i had sex today the condom broke while he was in me he push a couple times after then pulled out he wasnt about to orgasm but he was releasing pre cum before. the condom broke ....what should i do?