Is it ok to be upset ?

Sarah • loving our little angel above us 👼🏼 • Momma to a baby boy, October 30 2018💙

Found out yesterday night at the ER that i'm currently miscarrying @ 8 weeks.. I've obviously been a mess seeing as it wasn't even 24 hours.. This morning I was silently crying in the bathroom (I have to cry alone) I walked into my SO masturbating to porn and I was just so disgusted and hurt that he could be doing something like this when I couldn't even bear to think about sex yet never mind masturbating...Keep in mind of course he's hurt because we lost our baby but I feel like this isn't the right time for him to be doing this .. am I in the wrong for being upset about it?