Sex on the Pill

If I take am on a contraceptive pill is it okay to have unprotected sex?