weird question

If I'm on the pill how long should I wait to let my boyfriend cum in me without getting pregnant