If the girl lied to the court, then yes she faces potential penalties.
However, there's no such thing as "consensual sex" for the 17 year old because the law says that she can not consent. That's what statutory rape is. She is very unlikely to be punished, because the law views it as not her fault. It doesn't matter if she wanted to or not, she could not legally consent because of her age.
Answered on Oct 13th, 2013 at 7:50 PM