Mother in laws comment after my miscarriage 😞

I miscaried my baby 3 months ago, and my sister in law just had her baby, we got to meet her baby today and while im holding gim my mother in law says “You dobt need to have anymore babies you can just hold that one”

I just smiled.. i felt really bad. Im not sure if she meant it in a bad way or not or if im just over emotional about the situation roght now, but it was rude.. 😞