Is this a mean thing to say to an infertile woman?

I know someone that's infertile. She has known her issue (something to do with a deformed uterus and something else too) since her teen years and inability to ever carry a baby full term. She had early 3 miscarriages.

Someone else once said ''At least you don't have to worry about an unwanted pregnancy. Think about it. You can have endless sex.'' She obviously got pissed off. Honestly wasn't that mean to say to an infertile woman?
Is this a mean thing to say to an infertile woman?
Post Opinion