Thanks for your query.
Inverting of condom carries a risk of sperms that are present in the prostatic fluid (precum) entering the vagina.
So there can be chances of getting pregnant.
You can get a emergency contraceptive pill
prescribed from a doctor and give her as early as possible.
Emergency contraceptive if taken with in 72 hours of unprotected sex (or when in doubt)can help prevent pregnancy
Hope this answer is helpful.