Yes. Lots of people commit offences and could give mitigating circumstances.
Very, very few people charged with a crime say 'yeah I knew I was breaking the law and decided to do so hoping I wouldn't get caught or if I was, hope I wouldn't be punished because x, y and z reasons'.
She knew she was pregnant weeks before lockdown. Her estimate was that one of the people she was having sex with impregnated her at some point between Oct and December.
Her texts said in Feb she knew she was pregnant and not just a couple of weeks.
So even before lockdown in March she knew and could have taken steps to abort.
She didn't. And for months she was Googling how to get an abortion, how to get an abortion after the legal limit and if she would go to prison if she did.
She chose to lie to everyone including medical professionals to gain drugs to abort the foetus when she knew she was several months pregnant.
Several months where she knew she was pregnant, knew what the laws were and at one point Googled to see if she could go to prison for aborting a foetus after the legal limit.
She possibly thought she would possibly be able to hide the birth, or not go to prison so she did what she did.
She was wrong and couldn't hide it and was prosecuted and now has to serve a prison sentence.
Which is just.
She demonstrated months of planning but fucked up at the end and got caught. She deserves prison.