love and sex

I'm 15 and considering having sex with my boyfriend is that bad, and what should I do to prepare and make sure it's not painful. Also what do I do so that I don't get preganant?