No, it's certainly not ok. Withdrawal is not a very safe method of birth control. Even if the penis was in vagina for a short period of time, it’s still unsafe because a single sperm is enough for pregnancy.
If you would like to join in on a further discussion on this topic, join our discussion board, ‘Just Ask’
https://lovematters.in/en/forum
No, it's certainly not ok…