Constipated baby??

So i just started supplementing with formula and yesterday my daughter only pooped 2 times when usually she would poop at least 4 times a day... it’s now 3:30 am and she’s trying so hard to poop and she’s getting so frustrated it’s so sad. Should I be worried?