feeling out of it

Ever since i’ve been taking the pill i’ve been having episodes where I don’t feel like myself and I just feel sad for no reason. Can the pill cause depression or am i just over reacting.