The Pill

If you go on the pill can your boyfriend cum inside you or is there still a risk of pregnancy?