The pill?

I’ve just recently started having sex and we use condoms but we’ve had them break twice now and so I feel like it would be safer to be on the pill but I’ve read that the side effects are terrible. Is that true? Does it really make you gain weight?