Credit: Stefanie Keenan/

Lindsay Lohan's headed for jail next month . . . or is she?

After pleading (through her lawyer) no contest for stealing a pricey necklace at an L.A. store in January, the star, 24, was sentenced to four months in jail on Wednesday, Reuters reports.

Lohan wasn't in court this time for the sentencing on the theft charge, which reduced to a misdemeanor. The Mean Girls actress was sentenced to 120 days in jail and 480 hours community service. A judge told the troubled starlet to report to jail by June 17.

There's a major bright side for Lohan, though: Her attorney noted in court that, due to overcrowding in L.A. jails, Lohan will likely serve her sentence under house arrest or with an electronic monitoring program.

Lohan -- ordered to complete psychological counseling and an anti-shoplifting program -- could also shave off time off those 4 months thanks to good behavior.

It's not up to the judge, Stephanie Sautner, whether Lohan serves her sentence at home or for less time -- that's up to the Los Angeles County Sheriff's Department which runs the jail system.

"Any early release on house arrest seems to be a triple bonus," Sautner complained in court. " (But) I am not about to battle the Sheriff. I do order that while under house arrest she is not allowed out to do community service."

Despite her ongoing legal woes, Lohan landed her first movie role in years last month: a minor role in flick about the NYC Gotti mafia clan starring John Travolta, wife Kelly Preston and Al Pacino.