A PREGNANT teenager who hit a woman in the head at Maryborough's Station Square has been sentenced to three months in prison, but she was granted immediate parole.

Juanita Marlena Tobane, 19, appeared before Maryborough Magistrates Court and pleaded guilty to one charge of common assault.

Police prosecutor Sergeant Michael Quirk told the court Tobane approached a woman at Station Square and "smacked her in the back of the head" while swearing and yelling that the woman had almost run her over.

Sgt Quirk said police had interviewed the victim who had no recollection of seeing anyone at the pedestrian crossing where Tobane claimed she had almost been run over.

The court heard Tobane was pregnant and suffering from gestational diabetes, which meant she would have to be induced in about eight weeks for her own safety and that of her unborn child.

Tobane also had her siblings, aged between 12 and 15, in her care, the court was told.

The court heard Tobane had to get out of the way of the oncoming vehicle and being pregnant had increased her concerns over the incident.

Tobane was on a suspended sentence when the incident happened and magistrate Gary Finger told her she needed to "walk away".

"Shake your head and forget about it," he said.

"You don't want your children or siblings visiting you in prison, do you? Keep you hands to yourself."

Mr Finger fined Tobane $750 for her actions and ordered her to the suspended sentence with immediate parole, meaning she would need to report to parole for the next three months.