There could be a few answers for this - most importantly: ask your body!!! Do take in mind that muscle is heavier than fat, the time of day and also when in the month you weighed yourself could also be attributes to your weight gain.
Also remember that you need to eat right for what exercise you are planning to partake in.