One way of not getting pregnant is not having sexual intercourse.