I stepped on the scale and cried

I'm only 3 weeks and I gained extra pounds. Before I found out I was even pregnant I was taking diet pills and a week before the gym closed down for christmas holiday, I weighed 215. Now today I weigh 226. Anyone else gained so many? When I was taking those pills I thought I was still losing this is when I didn't know i was pregnant. I can cry right now