Josh Hartnett is going to be a dad! The "Penny Dreadful" actor and his girlfriend, British actress Tamsin Egerton, are expecting their first child, Page Six reported.

"It's true and they are beyond thrilled," Hartnett's rep confirmed to Page Six.

The parents-to-be met in 2011 while they were filming their romance-adventure movie "The Lovers," E! News reported. Hartnett, 36, and Egerton, 26, stepped out in May 2013 as an official couple. Their relationship gradually progressed from friendly to romantic.

"It was just a natural thing that happened," a source told Us Weekly. "He said she was really nice. They seem to just really enjoy each other's company. And he thinks she's gorgeous, of course."

Hartnett first hinted at having a baby on the brain during his interview with Playboy magazine back in April. When asked why he turns down work, he explained the reasoning behind his thought process whenever he decides to accept or deny a role.

"If we could just help one another and express ourselves, we'd all be happy. But then I think, Oh shit, there are bills to be paid, and I'd have to get a car that's safe for my kid," he told Playboy. "I don't have a kid yet, but that's the idea coming into my head these days."