I’m not sure

The last time me and my bf did it was about three months ago and I started the pill which was supposed to work in about two months a month ago and missed my next period on it. I took the test and negative but I keep gaining weight. It could be just bloating. Looking for a little advise I guess.