Pregnancy

Listen I just want reassurance! I’ve never had sex but for some reason every time my boyfriend grinds on me while we’re naked it just makes me think I can be pregnant. So my question is, sex is the only way you can get pregnant right? You actually have to have a penis ejaculate inside you to get pregnant? Thanks guys I know it’s stupid but I just want reassurance