The Mindy Project star Mindy Kaling is pregnant with her first child

Mindy Kaling is going to be a mom!

The A Wrinkle in Time actress is expecting her first child, sources confirm to PEOPLE.

Get push notifications with news, features and more.

The pregnancy was “an unexpected surprise,” an insider told E! News, which first reported the news.

Kaling’s rep declined to comment to PEOPLE.

Want all the latest pregnancy and birth announcements, plus celebrity mom blogs? Click here to get those and more in the PEOPLE Babies newsletter.

Image zoom Alberto E. Rodriguez/Getty

The 38-year-old The Mindy Project star and creator has previously been candid about eventual motherhood, writing in her 2015 book Why Not Me? that she worries about things like, “I will never have a husband and all my female acquaintances will,” and “What if my kids are really young when I die because I waited too long to have them?”

Kaling told Yahoo! Style that same year, “I think I’ve decided that unlike everything else in my life, I’m going to be fast and loose about kids. I’m going to not actively plan, but if it happens, it would happen.”

FROM PEN: Today’s Savannah Guthrie Was Very Superstitious About Her Pregnancy: “I Didn’t Want to Jinx It”

She also added, “I’m not cavalier about who I would have a kid with. But the thing I ask every parent that I really admire, the one comment they all have is that they wish they had kids earlier.”