Yes it is legal.
You want to appeal the sentence.
You have 28 days to do that from date of sentence.
This happened in January 2017.
As such you are 18 months out of time.
So you need to seek PERMISSION to appeal out of time.
You need to fill in some forms. The Court will then consider this and decide whether to give you permission.
If it was the Crown Court please see:
If it was the Magistrates Court please see:
Can I clarify anything for you about this today, please?
If not, I would appreciate a 5-star rating for my answer. If you need anything further I am available for a follow up at no extra cost.