It depends on what you were on. There are different versions of the hormones present in pills, and some are more likely than others to cause these side effects. Tell your doctor what pill you were on and what the side effect was, and s/he can make an educated guess about why that happened and what type of pill might produce less of that same side effect.